tgbot-cpp
|
#include <KeyboardButton.h>
Public Types | |
typedef std::shared_ptr< KeyboardButton > | Ptr |
Public Attributes | |
std::string | text |
bool | requestContact = false |
bool | requestLocation = false |
This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields are mutually exclusive.
Definition at line 19 of file KeyboardButton.h.
typedef std::shared_ptr<KeyboardButton> TgBot::KeyboardButton::Ptr |
Definition at line 22 of file KeyboardButton.h.
bool TgBot::KeyboardButton::requestContact = false |
Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only
Definition at line 34 of file KeyboardButton.h.
bool TgBot::KeyboardButton::requestLocation = false |
Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only.
Definition at line 39 of file KeyboardButton.h.
std::string TgBot::KeyboardButton::text |
Text of the button. If none of the optional fields are used, it will be sent to the bot as a message when the button is pressed
Definition at line 28 of file KeyboardButton.h.