
    Yi	                     l    S r SSKJrJr  SSKJr  SSKJr  SSKJ	r	  \(       a  SSK
Jr   " S S\5      rg	)
zHThis module contains an object that represents a Telegram GameHighScore.    )TYPE_CHECKINGOptional)TelegramObject)User)JSONDict)Botc            
          ^  \ rS rSrSrSrSS.S\S\S\S	\\	   4U 4S
 jjjr
\ SS\\	   S\S   S\S    4U 4S jjj5       rSrU =r$ )GameHighScore   a&  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U ]  US9  Xl        X l        X0l        U R                  U R                  U R                  4U l        U R                  5         g )Nr   )super__init__r   r   r   	_id_attrs_freeze)selfr   r   r   r   	__class__s        H/app/.venv/lib/python3.13/site-packages/telegram/_games/gamehighscore.pyr   GameHighScore.__init__3   sG     	J/%	
--DJJ?    databotr   returnc                    > U R                  U5      nU(       d  g[        R                  " UR                  S5      U5      US'   [        TU ]	  XS9$ )z,See :meth:`telegram.TelegramObject.de_json`.Nr   )r   r   )_parse_datar   de_jsongetr   )clsr   r   r   s      r   r    GameHighScore.de_json?   sG    
 t$||DHHV$4c:VwD22r   )r   r   r   r   )N)__name__
__module____qualname____firstlineno____doc__	__slots__intr   r   r   r   classmethodr    __static_attributes____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>r4      s)   & O * 3  *,3N ,3r   