tgbot-cpp
Main Page
Modules
Namespaces
Classes
Files
File List
InlineKeyboardButton.h
Go to the documentation of this file.
1
//
2
// Created by Andrea Giove on 17/04/16.
3
//
4
5
#ifndef TGBOT_INLINEKEYBOARDBUTTON_H
6
#define TGBOT_INLINEKEYBOARDBUTTON_H
7
8
#include <string>
9
#include <memory>
10
11
#include "
tgbot/types/CallbackGame.h
"
12
13
namespace
TgBot
{
14
20
class
InlineKeyboardButton
{
21
public
:
22
typedef
std::shared_ptr<InlineKeyboardButton>
Ptr
;
23
27
std::string
text
;
28
32
std::string
url
;
33
37
std::string
callbackData
;
38
44
std::string
switchInlineQuery
;
45
49
std::string
switchInlineQueryCurrentChat
;
50
56
CallbackGame::Ptr
callbackGame
;
57
63
bool
pay
=
false
;
64
};
65
}
66
67
#endif //TGBOT_INLINEKEYBOARDBUTTON_H
TgBot::InlineKeyboardButton::Ptr
std::shared_ptr< InlineKeyboardButton > Ptr
Definition:
InlineKeyboardButton.h:22
TgBot
Definition:
Api.h:49
TgBot::InlineKeyboardButton::switchInlineQueryCurrentChat
std::string switchInlineQueryCurrentChat
Optional. If set, pressing the button will insert the bot‘s username and the specified inline query ...
Definition:
InlineKeyboardButton.h:49
TgBot::CallbackGame::Ptr
std::shared_ptr< CallbackGame > Ptr
Definition:
CallbackGame.h:38
TgBot::InlineKeyboardButton::callbackData
std::string callbackData
Optional. Data to be sent in a callback query to the bot when button is pressed.
Definition:
InlineKeyboardButton.h:37
TgBot::InlineKeyboardButton
This object represents one button of an inline keyboard. You must use exactly one of the optional fie...
Definition:
InlineKeyboardButton.h:20
TgBot::InlineKeyboardButton::url
std::string url
Optional. HTTP url to be opened when button is pressed.
Definition:
InlineKeyboardButton.h:32
TgBot::InlineKeyboardButton::callbackGame
CallbackGame::Ptr callbackGame
Optional. Description of the game that will be launched when the user presses the button...
Definition:
InlineKeyboardButton.h:56
TgBot::InlineKeyboardButton::pay
bool pay
Optional. Specify True, to send a Pay button.
Definition:
InlineKeyboardButton.h:63
CallbackGame.h
TgBot::InlineKeyboardButton::text
std::string text
Label text on the button.
Definition:
InlineKeyboardButton.h:27
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:44
include
tgbot
types
InlineKeyboardButton.h
Generated on Fri Jun 22 2018 22:14:16 for tgbot-cpp by
1.8.11