tgbot-cpp
KeyboardButton.h
Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 26/12/16.
3 //
4 
5 #ifndef TGBOT_CPP_KEYBOARDBUTTON_H
6 #define TGBOT_CPP_KEYBOARDBUTTON_H
7 
8 #include <string>
9 #include <memory>
10 
11 namespace TgBot {
12 
22 
23 public:
24  typedef std::shared_ptr<KeyboardButton> Ptr;
25 
30  std::string text;
31 
36  bool requestContact = false;
37 
41  bool requestLocation = false;
42 };
43 
44 }
45 
46 #endif //TGBOT_CPP_KEYBOARDBUTTON_H
This object represents one button of the reply keyboard.
Definition: Api.h:49
std::shared_ptr< KeyboardButton > Ptr
bool requestContact
Optional. If True, the user&#39;s phone number will be sent as a contact when the button is pressed...
bool requestLocation
Optional. If True, the user&#39;s current location will be sent when the button is pressed. Available in private chats only.
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 ...