UserRating

class telegram.UserRating(level, rating, current_level_rating, next_level_rating=None, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This 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 level and rating are equal.

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 better

  • current_level_rating (int) – The rating value required to get the current level

  • next_level_rating (int, optional) – The rating value required to get to the next level; omitted if the maximum level was reached

level[source]

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.

Type:

int

rating[source]

Numerical value of the user’s rating; the higher the rating, the better

Type:

int

current_level_rating[source]

The rating value required to get the current level

Type:

int

next_level_rating[source]

Optional. The rating value required to get to the next level; omitted if the maximum level was reached

Type:

int