26 nl::json
json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Serialize.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
This object describes the background of a gift. https://core.telegram.org/bots/api#giftbackground.
std::int32_t textColor
Text color of the background in RGB format.
std::int32_t edgeColor
Edge color of the background in RGB format.
nl::json toJson() const
Serializes this object to JSON.
std::int32_t centerColor
Center color of the background in RGB format.
GiftBackground(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.