yatbcpp
0.0.1
Yet another Telegram Bot CPP Library
inc
types
KeyboardButton.h
Go to the documentation of this file.
1
#ifndef YATBCPP_KEYBOARDBUTTON_H
2
#define YATBCPP_KEYBOARDBUTTON_H
3
4
#include <string>
5
#include <optional>
6
7
namespace
yatbcpp
{
9
class
KeyboardButton
{
10
public
:
11
KeyboardButton
(std::string
text
);
12
13
KeyboardButton
(
const
KeyboardButton
&
KeyboardButton
);
14
15
void
setRequest_contact
(
const
std::optional<bool> &
request_contact
);
16
17
void
setRequest_location
(
const
std::optional<bool> &
request_location
);
18
19
const
std::string &
getText
()
const
;
20
21
const
std::optional<bool> &
getRequest_contact
()
const
;
22
23
const
std::optional<bool> &
getRequest_location
()
const
;
24
25
26
private
:
27
std::string
text
;
28
std::optional<bool>
request_contact
;
29
std::optional<bool>
request_location
;
30
31
};
32
33
}
34
35
#endif //YATBCPP_KEYBOARDBUTTON_H
yatbcpp::KeyboardButton::request_contact
std::optional< bool > request_contact
Definition:
KeyboardButton.h:28
yatbcpp::KeyboardButton
Definition:
KeyboardButton.h:9
yatbcpp::KeyboardButton::setRequest_contact
void setRequest_contact(const std::optional< bool > &request_contact)
Definition:
KeyboardButton.cc:30
yatbcpp::KeyboardButton::KeyboardButton
KeyboardButton(std::string text)
Definition:
KeyboardButton.cc:12
yatbcpp::KeyboardButton::request_location
std::optional< bool > request_location
Definition:
KeyboardButton.h:29
yatbcpp
Definition:
Bot.h:27
yatbcpp::KeyboardButton::getRequest_location
const std::optional< bool > & getRequest_location() const
Definition:
KeyboardButton.cc:50
yatbcpp::KeyboardButton::text
std::string text
Definition:
KeyboardButton.h:27
yatbcpp::KeyboardButton::getRequest_contact
const std::optional< bool > & getRequest_contact() const
Definition:
KeyboardButton.cc:46
yatbcpp::KeyboardButton::setRequest_location
void setRequest_location(const std::optional< bool > &request_location)
Definition:
KeyboardButton.cc:34
yatbcpp::KeyboardButton::getText
const std::string & getText() const
Definition:
KeyboardButton.cc:42
Generated by
1.8.13