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
4
#include "
tgbot/types/WebAppInfo.h
"
5
#include "
tgbot/types/LoginUrl.h
"
6
#include "
tgbot/types/CallbackGame.h
"
7
8
#include <memory>
9
#include <string>
10
11
namespace
TgBot
{
12
19
class
InlineKeyboardButton
{
20
public
:
21
typedef
std::shared_ptr<InlineKeyboardButton>
Ptr
;
22
26
std::string
text
;
27
32
std::string
url
;
33
37
std::string
callbackData
;
38
44
WebAppInfo::Ptr
webApp
;
45
50
LoginUrl::Ptr
loginUrl
;
51
59
std::string
switchInlineQuery
;
60
67
std::string
switchInlineQueryCurrentChat
;
68
74
CallbackGame::Ptr
callbackGame
;
75
81
bool
pay
;
82
};
83
}
84
85
#endif
//TGBOT_INLINEKEYBOARDBUTTON_H
CallbackGame.h
LoginUrl.h
WebAppInfo.h
TgBot::CallbackGame::Ptr
std::shared_ptr< CallbackGame > Ptr
Definition
CallbackGame.h:16
TgBot::InlineKeyboardButton
This object represents one button of an inline keyboard. You must use exactly one of the optional fie...
Definition
InlineKeyboardButton.h:19
TgBot::InlineKeyboardButton::switchInlineQueryCurrentChat
std::string switchInlineQueryCurrentChat
Optional. If set, pressing the button will insert the bot's username and the specified inline query i...
Definition
InlineKeyboardButton.h:67
TgBot::InlineKeyboardButton::callbackData
std::string callbackData
Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes.
Definition
InlineKeyboardButton.h:37
TgBot::InlineKeyboardButton::Ptr
std::shared_ptr< InlineKeyboardButton > Ptr
Definition
InlineKeyboardButton.h:21
TgBot::InlineKeyboardButton::loginUrl
LoginUrl::Ptr loginUrl
Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the...
Definition
InlineKeyboardButton.h:50
TgBot::InlineKeyboardButton::pay
bool pay
Optional. Specify True, to send a Pay button.
Definition
InlineKeyboardButton.h:81
TgBot::InlineKeyboardButton::callbackGame
CallbackGame::Ptr callbackGame
Optional. Description of the game that will be launched when the user presses the button.
Definition
InlineKeyboardButton.h:74
TgBot::InlineKeyboardButton::text
std::string text
Label text on the button.
Definition
InlineKeyboardButton.h:26
TgBot::InlineKeyboardButton::url
std::string url
Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?...
Definition
InlineKeyboardButton.h:32
TgBot::InlineKeyboardButton::switchInlineQuery
std::string switchInlineQuery
Optional. If set, pressing the button will prompt the user to select one of their chats,...
Definition
InlineKeyboardButton.h:59
TgBot::InlineKeyboardButton::webApp
WebAppInfo::Ptr webApp
Optional. Description of the Web App that will be launched when the user presses the button....
Definition
InlineKeyboardButton.h:44
TgBot::LoginUrl::Ptr
std::shared_ptr< LoginUrl > Ptr
Definition
LoginUrl.h:21
TgBot::WebAppInfo::Ptr
std::shared_ptr< WebAppInfo > Ptr
Definition
WebAppInfo.h:17
TgBot
Definition
Api.h:39
include
tgbot
types
InlineKeyboardButton.h
Generated on Mon Mar 4 2024 01:37:26 for tgbot-cpp by
1.10.0