tgbot-cpp
Loading...
Searching...
No Matches
KeyboardButton.h
Go to the documentation of this file.
1
#ifndef TGBOT_KEYBOARDBUTTON_H
2
#define TGBOT_KEYBOARDBUTTON_H
3
4
#include "
tgbot/types/KeyboardButtonRequestUsers.h
"
5
#include "
tgbot/types/KeyboardButtonRequestChat.h
"
6
#include "
tgbot/types/KeyboardButtonPollType.h
"
7
#include "
tgbot/types/WebAppInfo.h
"
8
9
#include <memory>
10
#include <string>
11
12
namespace
TgBot
{
13
25
class
KeyboardButton
{
26
27
public
:
28
typedef
std::shared_ptr<KeyboardButton>
Ptr
;
29
35
std::string
text
;
36
43
KeyboardButtonRequestUsers::Ptr
requestUsers
;
44
51
KeyboardButtonRequestChat::Ptr
requestChat
;
52
58
bool
requestContact
;
59
65
bool
requestLocation
;
66
72
KeyboardButtonPollType::Ptr
requestPoll
;
73
80
WebAppInfo::Ptr
webApp
;
81
};
82
}
83
84
#endif
//TGBOT_KEYBOARDBUTTON_H
KeyboardButtonPollType.h
KeyboardButtonRequestChat.h
KeyboardButtonRequestUsers.h
WebAppInfo.h
TgBot::KeyboardButton
This object represents one button of the reply keyboard.
Definition
KeyboardButton.h:25
TgBot::KeyboardButton::requestUsers
KeyboardButtonRequestUsers::Ptr requestUsers
Optional. If specified, pressing the button will open a list of suitable users.
Definition
KeyboardButton.h:43
TgBot::KeyboardButton::requestContact
bool requestContact
Optional. If True, the user's phone number will be sent as a contact when the button is pressed.
Definition
KeyboardButton.h:58
TgBot::KeyboardButton::requestChat
KeyboardButtonRequestChat::Ptr requestChat
Optional. If specified, pressing the button will open a list of suitable chats.
Definition
KeyboardButton.h:51
TgBot::KeyboardButton::requestPoll
KeyboardButtonPollType::Ptr requestPoll
Optional. If specified, the user will be asked to create a poll and send it to the bot when the butto...
Definition
KeyboardButton.h:72
TgBot::KeyboardButton::requestLocation
bool requestLocation
Optional. If True, the user's current location will be sent when the button is pressed.
Definition
KeyboardButton.h:65
TgBot::KeyboardButton::text
std::string text
Text of the button.
Definition
KeyboardButton.h:35
TgBot::KeyboardButton::webApp
WebAppInfo::Ptr webApp
Optional. If specified, the described Web App will be launched when the button is pressed.
Definition
KeyboardButton.h:80
TgBot::KeyboardButton::Ptr
std::shared_ptr< KeyboardButton > Ptr
Definition
KeyboardButton.h:28
TgBot::KeyboardButtonPollType::Ptr
std::shared_ptr< KeyboardButtonPollType > Ptr
Definition
KeyboardButtonPollType.h:17
TgBot::KeyboardButtonRequestChat::Ptr
std::shared_ptr< KeyboardButtonRequestChat > Ptr
Definition
KeyboardButtonRequestChat.h:22
TgBot::KeyboardButtonRequestUsers::Ptr
std::shared_ptr< KeyboardButtonRequestUsers > Ptr
Definition
KeyboardButtonRequestUsers.h:20
TgBot::WebAppInfo::Ptr
std::shared_ptr< WebAppInfo > Ptr
Definition
WebAppInfo.h:19
TgBot
Definition
Api.h:40
include
tgbot
types
KeyboardButton.h
Generated on Tue Jun 11 2024 00:46:35 for tgbot-cpp by
1.11.0