peyk.platforms.telegram.types.user_rating¶
Classes
|
This object describes the rating of a user based on their Telegram Star spendings. |
- class peyk.platforms.telegram.types.user_rating.UserRating(rating: int = 0)[source]¶
Bases:
objectThis object describes the rating of a user based on their Telegram Star spendings.
- Variables:
level – 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 better
current_level_rating – The rating value required to get the current level
next_level_rating – The rating value required to get to the next level; omitted if the maximum level was reached
- rating: int = 0¶
- classmethod from_dict(data: dict | None) UserRating | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.