tgbot-cpp
TgBot::KeyboardButton Class Reference

This object represents one button of the reply keyboard. More...

#include <KeyboardButton.h>

Public Types

typedef std::shared_ptr< KeyboardButtonPtr
 

Public Attributes

std::string 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. More...
 
bool 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. More...
 
bool requestLocation = false
 Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only. More...
 

Detailed Description

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 21 of file KeyboardButton.h.

Member Typedef Documentation

typedef std::shared_ptr<KeyboardButton> TgBot::KeyboardButton::Ptr

Definition at line 24 of file KeyboardButton.h.

Member Data Documentation

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 36 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 41 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 30 of file KeyboardButton.h.


The documentation for this class was generated from the following file: