42 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.
Describes a service message about a unique gift that was sent or received. https://core....
std::string ownedGiftId
Optional. Unique identifier of the received gift for the bot; only present for gifts received on beha...
std::int64_t lastResaleStarCount
Optional. For gifts bought from other users, the price paid for the gift.
std::string origin
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts,...
Ptr< UniqueGift > gift
Information about the gift.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int64_t transferStarCount
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot ...
std::time_t nextTransferDate
Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past,...
UniqueGiftInfo(const nl::json &json)
nl::json toJson() const
Serializes this object to JSON.