UserRating¶
- class telegram.UserRating(level, rating, current_level_rating, next_level_rating=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis object describes the rating of a user based on their Telegram Star spendings.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
levelandratingare equal.Available In
Added in version 22.6.
- Parameters:
level (
int) – Current level of the user, indicating their reliability when purchasing digital goods and services. A higher level suggests a more trustworthy customer; a negative level is likely reason for concern.rating (
int) – Numerical value of the user’s rating; the higher the rating, the bettercurrent_level_rating (
int) – The rating value required to get the current levelnext_level_rating (
int, optional) – The rating value required to get to the next level; omitted if the maximum level was reached