tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present. https://core.telegram.org/bots/api#callbackquery. More...
#include <CallbackQuery.hpp>
Public Member Functions | |
CallbackQuery ()=default | |
CallbackQuery (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | id |
Unique identifier for this query. More... | |
Ptr< User > | from |
Sender. More... | |
Ptr< Message > | message |
Optional. Message with the callback button that originated the query. More... | |
std::string | inlineMessageId |
Optional. Identifier of the message sent via the bot in inline mode, that originated the query. More... | |
std::string | chatInstance |
Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games. More... | |
std::string | data |
Optional. Data associated with the callback button. More... | |
std::string | gameShortName |
Optional. Short name of a Game to be returned, serves as the unique identifier for the game. More... | |
This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present. https://core.telegram.org/bots/api#callbackquery.
Definition at line 16 of file CallbackQuery.hpp.
|
default |
|
inlineexplicit |
Definition at line 18 of file CallbackQuery.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 61 of file CallbackQuery.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 48 of file CallbackQuery.hpp.
std::string tgbotxx::CallbackQuery::chatInstance |
Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
Definition at line 37 of file CallbackQuery.hpp.
std::string tgbotxx::CallbackQuery::data |
Optional. Data associated with the callback button.
Definition at line 41 of file CallbackQuery.hpp.
Sender.
Definition at line 26 of file CallbackQuery.hpp.
std::string tgbotxx::CallbackQuery::gameShortName |
Optional. Short name of a Game to be returned, serves as the unique identifier for the game.
Definition at line 44 of file CallbackQuery.hpp.
std::string tgbotxx::CallbackQuery::id |
Unique identifier for this query.
Definition at line 23 of file CallbackQuery.hpp.
std::string tgbotxx::CallbackQuery::inlineMessageId |
Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
Definition at line 33 of file CallbackQuery.hpp.
Optional. Message with the callback button that originated the query.
Definition at line 30 of file CallbackQuery.hpp.