41 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 describes a unique gift that was upgraded from a regular gift. https://core....
void fromJson(const nl::json &json)
Deserializes this object from JSON.
nl::json toJson() const
Serializes this object to JSON.
std::string name
Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.
Ptr< UniqueGiftModel > model
Model of the gift.
Ptr< UniqueGiftSymbol > symbol
Symbol of the gift.
std::string baseName
Human-readable name of the regular gift from which this unique gift was upgraded.
Ptr< Chat > publisherChat
Optional. Information about the chat that published the gift.
Ptr< UniqueGiftBackdrop > backdrop
Backdrop of the gift.
UniqueGift(const nl::json &json)
std::int32_t number
Unique number of the upgraded gift among gifts upgraded from the same regular gift.