28 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 colors of the backdrop of a unique gift. https://core.telegram....
UniqueGiftBackdropColors()=default
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int32_t centerColor
The color in the center of the backdrop in RGB format.
std::int32_t textColor
The color for the text on the backdrop in RGB format.
nl::json toJson() const
Serializes this object to JSON.
UniqueGiftBackdropColors(const nl::json &json)
std::int32_t edgeColor
The color on the edges of the backdrop in RGB format.
std::int32_t symbolColor
The color to be applied to the symbol in RGB format.