3 #include <nlohmann/json.hpp>
8 namespace nl = nlohmann;
49 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional)
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
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.
std::string id
Unique identifier for this query.
nl::json toJson() const
Serializes this object to JSON.
Ptr< Message > message
Optional. Message with the callback button that originated the query.
CallbackQuery(const nl::json &json)