StarsRating

class pyrogram.raw.types.StarsRating

Represents the profile’s star rating, see here » for more info.

Constructor of StarsRating.

Details:
  • Layer: 223

  • ID: 1B0E4F07

Parameters:
  • level (int 32-bit) – The current level, may be negative.

  • current_level_stars (int 64-bit) – The numerical value of the rating required for the current level.

  • stars (int 64-bit) – Numerical value of the current rating.

  • next_level_stars (int 64-bit, optional) – The numerical value of the rating required for the next level.

TL Schema

starsRating#1b0e4f07
flags:#
level:int
current_level_stars:long
stars:long
next_level_stars:flags.0?long

= StarsRating

Parameter Tree

StarsRating
├── levelint
├── current_level_starslong
├── starslong
└── next_level_starslong (optional)

Example

StarsRating(
    level=0,
    current_level_stars=0,
    stars=0,
)