19 std::vector<Ptr<OwnedGift>>
gifts;
27 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field)
#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)
Contains the list of gifts received and owned by a user or a chat. https://core.telegram....
std::string nextOffset
Optional. Offset for the next request. If empty, then there are no more results.
OwnedGifts(const nl::json &json)
nl::json toJson() const
Serializes this object to JSON.
std::vector< Ptr< OwnedGift > > gifts
The list of gifts.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int32_t totalCount
The total number of gifts owned by the user or the chat.