tgbot-cpp
TgBot::KeyboardButton Class Reference

#include <KeyboardButton.h>

Public Types

typedef std::shared_ptr< KeyboardButtonPtr
 

Public Attributes

std::string text
 
bool requestContact
 
bool requestLocation
 

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

Member Typedef Documentation

◆ Ptr

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

Definition at line 22 of file KeyboardButton.h.

Member Data Documentation

◆ requestContact

bool TgBot::KeyboardButton::requestContact

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.

◆ requestLocation

bool TgBot::KeyboardButton::requestLocation

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.

◆ text

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.


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