tgbot-cpp
Loading...
Searching...
No Matches
TgBot::CallbackQuery Class Reference

This object represents an incoming callback query from a callback button in an inline keyboard. More...

#include <CallbackQuery.h>

Public Types

typedef std::shared_ptr< CallbackQueryPtr
 

Public Attributes

std::string id
 Unique identifier for this query.
 
User::Ptr from
 Sender.
 
Message::Ptr message
 Optional. Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old.
 
std::string inlineMessageId
 Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
 
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.
 
std::string data
 Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
 
std::string gameShortName
 

Detailed Description

This object represents an incoming callback query from a callback button in an inline keyboard.

Definition at line 16 of file CallbackQuery.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<CallbackQuery> TgBot::CallbackQuery::Ptr

Definition at line 18 of file CallbackQuery.h.

Member Data Documentation

◆ chatInstance

std::string TgBot::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 43 of file CallbackQuery.h.

◆ data

std::string TgBot::CallbackQuery::data

Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.

Definition at line 48 of file CallbackQuery.h.

◆ from

User::Ptr TgBot::CallbackQuery::from

Sender.

Definition at line 28 of file CallbackQuery.h.

◆ gameShortName

std::string TgBot::CallbackQuery::gameShortName

Definition at line 53 of file CallbackQuery.h.

◆ id

std::string TgBot::CallbackQuery::id

Unique identifier for this query.

Definition at line 23 of file CallbackQuery.h.

◆ inlineMessageId

std::string TgBot::CallbackQuery::inlineMessageId

Optional. Identifier of the message sent via the bot in inline mode, that originated the query.

Definition at line 38 of file CallbackQuery.h.

◆ message

Message::Ptr TgBot::CallbackQuery::message

Optional. Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old.

Definition at line 33 of file CallbackQuery.h.


The documentation for this class was generated from the following file: