23 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.
Describes an amount of Telegram Stars. https://core.telegram.org/bots/api#staramount.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int64_t amount
Integer amount of Telegram Stars, rounded to 0; can be negative.
nl::json toJson() const
Serializes this object to JSON.
std::int64_t nanostarAmount
Optional. The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be n...
StarAmount(const nl::json &json)