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
7
8#include <memory>
9#include <string>
10
11namespace TgBot {
12
20public:
21 typedef std::shared_ptr<InlineKeyboardButton> Ptr;
22
26 std::string text;
27
32 std::string url;
33
37 std::string callbackData;
38
45
51
59 std::string switchInlineQuery;
60
68
75
81 bool pay;
82};
83}
84
85#endif //TGBOT_INLINEKEYBOARDBUTTON_H
std::shared_ptr< CallbackGame > Ptr
This object represents one button of an inline keyboard. You must use exactly one of the optional fie...
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. Can be used as a replacement for the...
bool pay
Optional. Specify True, to send a Pay button.
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. Links tg://user?...
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< WebAppInfo > Ptr
Definition WebAppInfo.h:17
Definition Api.h:39