25 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 the symbol shown on the pattern of a unique gift. https://core....
UniqueGiftSymbol(const nl::json &json)
std::int32_t rarityPerMille
The number of unique gifts that receive this symbol for every 1000 gifts upgraded.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
Ptr< Sticker > sticker
The sticker that represents the unique gift.
UniqueGiftSymbol()=default
nl::json toJson() const
Serializes this object to JSON.
std::string name
Name of the symbol.