Ë
    †j®  ã                   ór   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
mZmZ erddlmZ  G d„ d	e«      Zy
)z;This module contains an object related to a Telegram Story.é    )ÚTYPE_CHECKING)ÚChat)ÚTelegramObject)ÚDEFAULT_NONE)ÚJSONDictÚODVInputÚ
TimePeriod)ÚBotc                   óÖ   ‡ — e Zd ZdZdZddœdedededz  ddfˆ fd	„Ze	dd
edddd fˆ fd„«       Z
defeeeeddœdedededz  dee   dee   dee   dee   dee   dedz  dd fd„Zˆ xZS )ÚStorya‡  
    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         ‰| �  |¬«       || _        || _        | j                  | j                  f| _        | j                  «        y )Nr   )ÚsuperÚ__init__r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   Ú	__class__s       €úN/var/www/html/datingFans/myenv/lib/python3.12/site-packages/telegram/_story.pyr   zStory.__init__;   s@   ø€ ô 	‰Ñ JÐÔ/ØˆŒ	ØˆŒàŸ)™) T§W¡WÐ-ˆŒà�‰�ó    ÚdataÚbotz
Bot | Nonec                 óš   •— | j                  |«      }t        j                  |j                  di «      |«      |d<   t        ‰| �	  ||¬«      S )z,See :meth:`telegram.TelegramObject.de_json`.r   )r   r   )Ú_parse_datar   Úde_jsonÚgetr   )Úclsr   r   r   s      €r   r   zStory.de_jsonJ   sE   ø€ ð �‰˜tÓ$ˆä—|‘| D§H¡H¨V°RÓ$8¸#Ó>ˆˆV‰Ü‰w‰ D¨cˆÓ2Ð2r   )Úread_timeoutÚwrite_timeoutÚconnect_timeoutÚpool_timeoutr   Úbusiness_connection_idÚactive_periodÚpost_to_chat_pageÚprotect_contentr"   r#   r$   r%   c             ƒ   ó®   K  — | j                  «       j                  || j                  j                  | j                  ||||||||	¬«      ƒ d{  –—† S 7 Œ­w)a•  Shortcut for::

             await bot.repost_story(
                from_chat_id=story.chat.id,
                from_story_id=story.id,
                *args, **kwargs
            )

        For the documentation of the arguments, please see :meth:`telegram.Bot.repost_story`.

        .. versionadded:: 22.6

        Returns:
            :class:`Story`: On success, :class:`Story` is returned.

        )r&   Úfrom_chat_idÚfrom_story_idr'   r(   r)   r"   r#   r$   r%   r   N)Úget_botÚrepost_storyr   r   )
r   r&   r'   r(   r)   r"   r#   r$   r%   r   s
             r   ÚrepostzStory.repostR   s]   è ø€ ð: —\‘\“^×0Ñ0Ø#9ØŸ™Ÿ™ØŸ'™'Ø'Ø/Ø+Ø%Ø'Ø+Ø%Ø!ð 1ó 
÷ 
ð 	
ð 
ús   ‚AAÁAÁA)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   Úintr   r   Úclassmethodr   r   Ústrr	   Úboolr   Úfloatr/   Ú__classcell__)r   s   @r   r   r       s  ø„ ñð*€Ið '+òàðð ðð
 ˜t‘Oðð 
õð ñ3˜8ð 3¨,ð 3À'ô 3ó ð3ð *.Ø*6ð)
ð )5Ø)5Ø+7Ø(4Ø&*ò)
à #ð)
ð "ð)
ð   $™;ð	)
ð
 " $™ð)
ð ˜u‘oð)
ð   ‘ð)
ð " %™ð)
ð ˜u‘oð)
ð ˜t‘Oð)
ð 
÷)
r   r   N)r3   Útypingr   Útelegram._chatr   Útelegram._telegramobjectr   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr   r   r	   Útelegramr
   r   © r   r   ú<module>rB      s1   ðñ& Bå  å Ý 3Ý 5ß @Ñ @áÝô[
ˆNõ [
r   