o
    Zzj}  ã                   @   s0   d Z ddlmZ ddlmZ G dd„ deƒZdS )zFThis module contains an object that represents a Telegram user rating.é    )ÚTelegramObject)ÚJSONDictc                       sP   e Zd ZdZdZ	dddœdededededB d	edB d
df‡ fdd„Z‡  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                   s@   t ƒ j|d� || _|| _|| _|| _| j| jf| _|  ¡  d S )Nr	   )ÚsuperÚ__init__r   r   r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   r   r
   ©Ú	__class__© úO/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telegram/_userrating.pyr   :   s   	zUserRating.__init__)N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Úintr   r   Ú__classcell__r   r   r   r   r      s&    ûùþýüûùør   N)r   Útelegram._telegramobjectr   Útelegram._utils.typesr   r   r   r   r   r   Ú<module>   s   