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/KeyboardButtonRequestUser.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
21
class
KeyboardButton
{
22
23
public
:
24
typedef
std::shared_ptr<KeyboardButton>
Ptr
;
25
31
std::string
text
;
32
39
KeyboardButtonRequestUser::Ptr
requestUser
;
40
47
KeyboardButtonRequestChat::Ptr
requestChat
;
48
54
bool
requestContact
;
55
61
bool
requestLocation
;
62
68
KeyboardButtonPollType::Ptr
requestPoll
;
69
76
WebAppInfo::Ptr
webApp
;
77
};
78
}
79
80
#endif
//TGBOT_KEYBOARDBUTTON_H
KeyboardButtonPollType.h
KeyboardButtonRequestChat.h
KeyboardButtonRequestUser.h
WebAppInfo.h
TgBot::KeyboardButton
This object represents one button of the reply keyboard. For simple text buttons, String can be used ...
Definition
KeyboardButton.h:21
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:54
TgBot::KeyboardButton::requestChat
KeyboardButtonRequestChat::Ptr requestChat
Optional. If specified, pressing the button will open a list of suitable chats.
Definition
KeyboardButton.h:47
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:68
TgBot::KeyboardButton::requestLocation
bool requestLocation
Optional. If True, the user's current location will be sent when the button is pressed.
Definition
KeyboardButton.h:61
TgBot::KeyboardButton::text
std::string text
Text of the button.
Definition
KeyboardButton.h:31
TgBot::KeyboardButton::requestUser
KeyboardButtonRequestUser::Ptr requestUser
Optional. If specified, pressing the button will open a list of suitable users.
Definition
KeyboardButton.h:39
TgBot::KeyboardButton::webApp
WebAppInfo::Ptr webApp
Optional. If specified, the described Web App will be launched when the button is pressed.
Definition
KeyboardButton.h:76
TgBot::KeyboardButton::Ptr
std::shared_ptr< KeyboardButton > Ptr
Definition
KeyboardButton.h:24
TgBot::KeyboardButtonPollType::Ptr
std::shared_ptr< KeyboardButtonPollType > Ptr
Definition
KeyboardButtonPollType.h:17
TgBot::KeyboardButtonRequestChat::Ptr
std::shared_ptr< KeyboardButtonRequestChat > Ptr
Definition
KeyboardButtonRequestChat.h:20
TgBot::KeyboardButtonRequestUser::Ptr
std::shared_ptr< KeyboardButtonRequestUser > Ptr
Definition
KeyboardButtonRequestUser.h:18
TgBot::WebAppInfo::Ptr
std::shared_ptr< WebAppInfo > Ptr
Definition
WebAppInfo.h:17
TgBot
Definition
Api.h:39
include
tgbot
types
KeyboardButton.h
Generated on Mon Mar 4 2024 01:37:26 for tgbot-cpp by
1.10.0