6namespace nl = nlohmann;
51 [[nodiscard]] nl::json
toJson()
const;
std::variant< Ptr< Message >, Ptr< InaccessibleMessage > > MaybeInaccessibleMessage
This object describes a message that can be inaccessible to the bot. It can be one of.
This object represents an incoming callback query from a callback button in an inline keyboard....
std::string inlineMessageId
Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
std::string gameShortName
Optional. Short name of a Game to be returned, serves as the unique identifier for the game.
std::string data
Optional. Data associated with the callback button.
std::string chatInstance
Global identifier, uniquely corresponding to the chat to which the message with the callback button w...
void fromJson(const nl::json &json)
Deserializes this object from JSON.
MaybeInaccessibleMessage message
Optional. Message sent by the bot with the callback button that originated the query.
std::string id
Unique identifier for this query.
nl::json toJson() const
Serializes this object to JSON.
CallbackQuery(const nl::json &json)