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
8
9#include <memory>
10#include <string>
11
12namespace TgBot {
13
82}
83
84#endif //TGBOT_KEYBOARDBUTTON_H
This object represents one button of the reply keyboard.
KeyboardButtonRequestUsers::Ptr requestUsers
Optional. If specified, pressing the button will open a list of suitable users.
bool requestContact
Optional. If True, the user's phone number will be sent as a contact when the button is pressed.
KeyboardButtonRequestChat::Ptr requestChat
Optional. If specified, pressing the button will open a list of suitable chats.
KeyboardButtonPollType::Ptr requestPoll
Optional. If specified, the user will be asked to create a poll and send it to the bot when the butto...
bool requestLocation
Optional. If True, the user's current location will be sent when the button is pressed.
std::string text
Text of the button.
WebAppInfo::Ptr webApp
Optional. If specified, the described Web App will be launched when the button is pressed.
std::shared_ptr< KeyboardButton > Ptr
std::shared_ptr< KeyboardButtonPollType > Ptr
std::shared_ptr< KeyboardButtonRequestChat > Ptr
std::shared_ptr< KeyboardButtonRequestUsers > Ptr
std::shared_ptr< WebAppInfo > Ptr
Definition WebAppInfo.h:19
Definition Api.h:40