tgbot-cpp
InlineKeyboardButton.h
Go to the documentation of this file.
1 //
2 // Created by Andrea Giove on 17/04/16.
3 //
4 
5 #ifndef TGBOT_INLINEKEYBOARDBUTTON_H
6 #define TGBOT_INLINEKEYBOARDBUTTON_H
7 
8 #include <string>
9 #include <memory>
10 
12 
13 namespace TgBot {
14 
21 public:
22  typedef std::shared_ptr<InlineKeyboardButton> Ptr;
23 
27  std::string text;
28 
32  std::string url;
33 
37  std::string callbackData;
38 
44  std::string switchInlineQuery;
45 
50 
57 
63  bool pay = false;
64 };
65 }
66 
67 #endif //TGBOT_INLINEKEYBOARDBUTTON_H
std::shared_ptr< InlineKeyboardButton > Ptr
Definition: Api.h:49
std::string switchInlineQueryCurrentChat
Optional. If set, pressing the button will insert the bot‘s username and the specified inline query ...
std::shared_ptr< CallbackGame > Ptr
Definition: CallbackGame.h:38
std::string callbackData
Optional. Data to be sent in a callback query to the bot when button is pressed.
This object represents one button of an inline keyboard. You must use exactly one of the optional fie...
std::string url
Optional. HTTP url to be opened when button is pressed.
CallbackGame::Ptr callbackGame
Optional. Description of the game that will be launched when the user presses the button...
bool pay
Optional. Specify True, to send a Pay button.
std::string text
Label text on the button.
std::string switchInlineQuery
Optional. If set, pressing the button will prompt the user to select one of their chats...