tgbot-cpp
Loading...
Searching...
No Matches
InlineKeyboardButton.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEKEYBOARDBUTTON_H
2#define TGBOT_INLINEKEYBOARDBUTTON_H
3
8
9#include <memory>
10#include <string>
11
12namespace TgBot {
13
22
23public:
24 typedef std::shared_ptr<InlineKeyboardButton> Ptr;
25
29 std::string text;
30
36 std::string url;
37
41 std::string callbackData;
42
50
57
63 std::string switchInlineQuery;
64
72
77
84
90 bool pay;
91};
92}
93
94#endif //TGBOT_INLINEKEYBOARDBUTTON_H
std::shared_ptr< CallbackGame > Ptr
This object represents one button of an inline keyboard.
std::string switchInlineQueryCurrentChat
Optional. If set, pressing the button will insert the bot's username and the specified inline query i...
std::string callbackData
Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes.
std::shared_ptr< InlineKeyboardButton > Ptr
LoginUrl::Ptr loginUrl
Optional. An HTTPS URL used to automatically authorize the user.
bool pay
Optional. Specify True, to send a Pay button.
SwitchInlineQueryChosenChat::Ptr switchInlineQueryChosenChat
Optional. If set, pressing the button will prompt the user to select one of their chats of the specif...
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 url
Optional. HTTP or tg:// URL to be opened when the button is pressed.
std::string switchInlineQuery
Optional. If set, pressing the button will prompt the user to select one of their chats,...
WebAppInfo::Ptr webApp
Optional. Description of the Web App that will be launched when the user presses the button.
std::shared_ptr< LoginUrl > Ptr
Definition LoginUrl.h:21
std::shared_ptr< SwitchInlineQueryChosenChat > Ptr
std::shared_ptr< WebAppInfo > Ptr
Definition WebAppInfo.h:19
Definition Api.h:40