
    ՟f	                     b    d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	 erddl
mZ  G d de      Zy	)
zHThis module contains an object that represents a Telegram GameHighScore.    )TYPE_CHECKINGOptional)TelegramObject)User)JSONDict)Botc            
       |     e Zd ZdZdZdddedededee   f fd	Z	e
	 dd
ee   ded   ded    f fd       Z xZS )GameHighScoreaR  This object represents one row of the high scores table for a game.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`position`, :attr:`user` and :attr:`score` are equal.

    Args:
        position (:obj:`int`): Position in high score table for the game.
        user (:class:`telegram.User`): User.
        score (:obj:`int`): Score.

    Attributes:
        position (:obj:`int`): Position in high score table for the game.
        user (:class:`telegram.User`): User.
        score (:obj:`int`): Score.

    )positionscoreuserN
api_kwargsr   r   r   r   c                    t         |   |       || _        || _        || _        | j                  | j                  | j                  f| _        | j                          y )Nr   )super__init__r   r   r   	_id_attrs_freeze)selfr   r   r   r   	__class__s        X/var/www/cvtools/html/venv/lib/python3.12/site-packages/telegram/_games/gamehighscore.pyr   zGameHighScore.__init__3   sM     	J/%	
--DJJ?    databotr   returnc                     | j                  |      }|syt        j                  |j                  d      |      |d<   t        | 	  ||      S )z,See :meth:`telegram.TelegramObject.de_json`.Nr   )r   r   )_parse_datar   de_jsongetr   )clsr   r   r   s      r   r   zGameHighScore.de_json?   sI    
 t$||DHHV$4c:VwDc22r   )N)__name__
__module____qualname____doc__	__slots__intr   r   r   r   classmethodr   __classcell__)r   s   @r   r
   r
      s}    " .I Z^

#'
03
DLXDV
 >B3H%3,4UO3	/	"3 3r   r
   N)r$   typingr   r   telegram._telegramobjectr   telegram._userr   telegram._utils.typesr   telegramr   r
    r   r   <module>r/      s)   & O * 3  *,3N ,3r   