11 explicit Game(
const nl::json& json) {
22 std::vector<Ptr<PhotoSize>>
photo;
41 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_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.
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
This object represents a game. Use BotFather to create and edit games, their short names will act as ...
Game(const nl::json &json)
std::vector< Ptr< PhotoSize > > photo
Photo that will be displayed in the game message in chats.
std::string description
Description of the game.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
Ptr< Animation > animation
Optional. Animation that will be displayed in the game message in chats. Upload via BotFather https:/...
std::string text
Optional. Brief description of the game or high scores included in the game message....
nl::json toJson() const
Serializes this object to JSON.
std::vector< Ptr< MessageEntity > > textEntities
Optional. Special entities that appear in text, such as usernames, URLs, bot commands,...
std::string title
Title of the game.