28 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 rating of a user based on their Telegram Star spendings....
UserRating(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int32_t level
Current level of the user, indicating their reliability when purchasing digital goods and services....
nl::json toJson() const
Serializes this object to JSON.
std::int32_t rating
Numerical value of the user's rating; the higher the rating, the better.
std::int32_t currentLevelRating
The rating value required to get the current level.
std::int32_t nextLevelRating
Optional. The rating value required to get to the next level; omitted if the maximum level was reache...