Cppgram  1.0.0
Easy and modern C++14 Telegram Bot API wrapper
Public Attributes | List of all members
CallbackQuery Class Reference

Data from an inline keyboard button pressed. More...

#include <callback_query.hpp>

Public Attributes

std::string id
 Unique identifier for this query.
 
User from
 Sender.
 
std::experimental::optional< Messagemessage
 Optional. Message with the callback button that originated the query. More...
 
std::experimental::optional< std::string > inline_message_id
 Optional. Identifier of the message sent via the bot in inline mode, that originated the query
 
std::string chat_instance
 Identifier, uniquely corresponding to the chat to which the message with the callback button was sent. More...
 
std::experimental::optional< std::string > data
 Optional. Data associated with the callback button. More...
 
std::experimental::optional< std::string > game_short_name
 Optional. Short name of a Game to be returned, serves as the unique identifier for the game
 

Detailed Description

Data from an inline keyboard button pressed.

This object represents an incoming callback query from a callback button in an inline keyboard. (https://core.telegram.org/bots/api#callbackquery)

Member Data Documentation

◆ chat_instance

std::string chat_instance

Identifier, uniquely corresponding to the chat to which the message with the callback button was sent.

Useful for high scores in games.

◆ data

std::experimental::optional<std::string> data

Optional. Data associated with the callback button.

Be aware that a bad client can send arbitrary data in this field

◆ message

std::experimental::optional<Message> 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


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