47 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)
Serialize.
#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 lastResaleAmount
Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or ...
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::string lastResaleCurrency
Optional. For gifts bought from other users, the currency in which the payment for the gift was done....
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.