
    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	)
z;This module contains an object related to a Telegram Story.    )TYPE_CHECKINGOptional)Chat)TelegramObject)JSONDict)Botc            	          ^  \ rS rSrSrSrS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$ )Story   aS  
This object represents a story.

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

.. versionadded:: 20.5

.. versionchanged:: 21.0
    Added attributes :attr:`chat` and :attr:`id` and equality based on them.

Args:
    chat (:class:`telegram.Chat`): Chat that posted the story.
    id (:obj:`int`): Unique identifier for the story in the chat.

Attributes:
    chat (:class:`telegram.Chat`): Chat that posted the story.
    id (:obj:`int`): Unique identifier for the story in the chat.

)chatidN
api_kwargsr   r   r   returnc                   > [         TU ]  US9  Xl        X l        U R                  U R                  4U l        U R                  5         g )Nr   )super__init__r   r   	_id_attrs_freeze)selfr   r   r   	__class__s       :/app/.venv/lib/python3.13/site-packages/telegram/_story.pyr   Story.__init__:   s<     	J/	))TWW-    databotr   c                    > U R                  U5      nU(       d  g[        R                  " UR                  S0 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   Story.de_jsonI   sI     t$||DHHVR$8#>VwD22r   )r   r   r   )N)__name__
__module____qualname____firstlineno____doc__	__slots__r   intr   r   r   classmethodr   __static_attributes____classcell__)r   s   @r   r
   r
      s    *I *. 
 X& 
  38H- 3HUO 3xX_O` 3 3r   r
   N)r'   typingr   r   telegram._chatr   telegram._telegramobjectr   telegram._utils.typesr   telegramr   r
    r   r   <module>r3      s)   & B *  3 *33N 33r   