29 nl::json json = nl::json::object();
#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 types of gifts that can be gifted to a user or a chat. https://core....
bool uniqueGifts
True, if unique gifts or gifts that can be upgraded to unique for free are accepted.
bool unlimitedGifts
True, if unlimited regular gifts are accepted.
nl::json toJson() const
Serializes this object to JSON.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
AcceptedGiftTypes()=default
bool premiumSubscription
True, if a Telegram Premium subscription is accepted.
AcceptedGiftTypes(const nl::json &json)
bool limitedGifts
True, if limited regular gifts are accepted.