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 };
58 }
59 
60 #endif //TGBOT_INLINEKEYBOARDBUTTON_H
std::shared_ptr< InlineKeyboardButton > Ptr
Definition: Api.h:47
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...
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...