
    i}                     >    d Z ddlmZ ddlmZ  G d de          ZdS )zFThis module contains an object that represents a Telegram user rating.    )TelegramObject)JSONDictc                   V     e Zd ZdZdZ	 ddddededededz  d	edz  d
df fdZ xZS )
UserRatinga
  
    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 :attr:`level` and :attr:`rating` are equal.

    .. versionadded:: 22.6

    Args:
        level (:obj:`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 (:obj:`int`): Numerical value of the user's rating; the higher the rating, the
            better
        current_level_rating (:obj:`int`): The rating value required to get the current level
        next_level_rating (:obj:`int`, optional): The rating value required to get to the next
            level; omitted if the maximum level was reached

    Attributes:
        level (:obj:`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 (:obj:`int`): Numerical value of the user's rating; the higher the rating, the
            better
        current_level_rating (:obj:`int`): The rating value required to get the current level
        next_level_rating (:obj:`int`): Optional. The rating value required to get to the next
            level; omitted if the maximum level was reached

    )current_level_ratinglevelnext_level_ratingratingN
api_kwargsr   r
   r   r	   r   returnc                    t                                          |           || _        || _        || _        || _        | j        | j        f| _        |                                  d S )Nr   )super__init__r   r
   r   r	   	_id_attrs_freeze)selfr   r
   r   r	   r   	__class__s         T/Users/shanyulin/my-agent/.venv/lib/python3.11/site-packages/telegram/_userrating.pyr   zUserRating.__init__:   s_     	J///
!)=!->*dk2    )N)	__name__
__module____qualname____doc__	__slots__intr   r   __classcell__)r   s   @r   r   r      s         < QI )- '+    "	
 : tO 
         r   r   N)r   telegram._telegramobjectr   telegram._utils.typesr   r    r   r   <module>r!      sf   & M L 3 3 3 3 3 3 * * * * * *2 2 2 2 2 2 2 2 2 2r   