+
    ÁFñjç  ã                   ó¸   € R t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt ^ R	IHtHt  ! R
 R]
4      t ! R R]4      t ! R R]4      tR# )zCThis module contains objects that represent paid media in Telegram.N)ÚFinal)Ú	constants)Ú	InputFile)ÚTelegramObject)Úenum)Úto_timedelta©Úparse_file_input©Ú	FileInputÚJSONDictc                   óÒ   a a€ ] tR t^!t oRtR	t]P                  P                  t ]P                  P                  t	 RR/V3R lV 3R lllt
]V3R lR l4       tV3R ltR	tVtV ;t# )
ÚInputStoryContenta.  This object describes the content of a story to post. Currently, it can be one of:

* :class:`telegram.InputStoryContentPhoto`
* :class:`telegram.InputStoryContentVideo`

.. versionadded:: 22.1

Args:
    type (:obj:`str`): Type of the content.

Attributes:
    type (:obj:`str`): Type of the content.
Ú
api_kwargsNc                ó8   <€ V ^8„  d   QhRS[ RS[R,          RR/# )é   Útyper   NÚreturn)Ústrr   )ÚformatÚ__classdict__s   "€ÚW/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_files/inputstorycontent.pyÚ__annotate__ÚInputStoryContent.__annotate__7   s-   ø€ ÷ 	ñ 	áð	ñ ˜t•Oð		ð
 
ñ	ó    c               óœ   <€ \         SV `  VR 7       \        P                  ! \        P
                  W4      V n        V P                  4        R# ))r   N)ÚsuperÚ__init__r   Ú
get_memberr   ÚInputStoryContentTyper   Ú_freeze)Úselfr   r   Ú	__class__s   &&$€r   r   ÚInputStoryContent.__init__7   s6   ø€ ô 	‰Ñ JÐÔ/ÜŸš¬×)HÑ)HÈ$ÓUˆŒ	à�‰Žr   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# )r   Ú
file_inputr   )r   r   r   )r   r   s   "€r   r   r   C   s#   ø€ ÷ Jñ J¡ið J±C¹)µOñ Jr   c                ó   € \        V R R R7      # )T)ÚattachÚ
local_moder   )r%   s   &r   Ú_parse_file_inputÚ#InputStoryContent._parse_file_inputB   s   € ô   
°4ÀDÔIÐIr   c                óR   <€ V ^8„  d   Qh/ S[ S[,          ;R&   S[ S[,          ;R&   # )r   ÚPHOTOÚVIDEO)r   r   )r   r   s   "€r   r   r   !   s'   ø‡ ‚ ñ" ‘�:Ñ=ñ# ñ& ‘�:Ñ=ò' r   )r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r   r   r,   r-   r   Ústaticmethodr)   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r"   r   s   @@r   r   r   !   sk   ù‡ € ñð €Ià!×7Ñ7×=Ñ=€EØAØ!×7Ñ7×=Ñ=€EØAð	ð '+÷		õ 	ð ÷Jó ðJ÷E … r   r   c                   óN   a a€ ] tR t^It oRtRtRR/V3R lV 3R llltRtVtV ;t	# )ÚInputStoryContentPhotoa×  Describes a photo to post as a story.

.. versionadded:: 22.1

Args:
    photo (:term:`file object` | :obj:`bytes` | :class:`pathlib.Path` | :obj:`str`,             optional): The photo to post as a story. The photo must be of the
        size :tg-const:`telegram.constants.InputStoryContentLimit.PHOTO_WIDTH`
        x :tg-const:`telegram.constants.InputStoryContentLimit.PHOTO_HEIGHT` and must not
        exceed :tg-const:`telegram.constants.InputStoryContentLimit.PHOTOSIZE_UPLOAD` MB.
        |uploadinputnopath|.

Attributes:
    type (:obj:`str`): Type of the content, must be :attr:`~telegram.InputStoryContent.PHOTO`.
    photo (:class:`telegram.InputFile`): The photo to post as a story. The photo must be of the
        size :tg-const:`telegram.constants.InputStoryContentLimit.PHOTO_WIDTH`
        x :tg-const:`telegram.constants.InputStoryContentLimit.PHOTO_HEIGHT` and must not
        exceed :tg-const:`telegram.constants.InputStoryContentLimit.PHOTOSIZE_UPLOAD` MB.

r   Nc                ó8   <€ V ^8„  d   QhRS[ RS[R,          RR/# )r   Úphotor   Nr   r
   )r   r   s   "€r   r   Ú#InputStoryContentPhoto.__annotate__a   s2   ø€ ÷ 	Hñ 	Háð	Hñ ˜t•Oð		Hð
 
ñ	Hr   c               óÜ   <€ \         SV `  \        P                  VR 7       V P	                  4       ;_uu_ 4        V P                  V4      V n        RRR4       R#   + '       g   i     R# ; i©)r   r   N)r   r   r   r,   Ú	_unfrozenr)   r=   )r!   r=   r   r"   s   &&$€r   r   ÚInputStoryContentPhoto.__init__a   sL   ø€ ô 	‰ÑÔ/×5Ñ5À*ÐÔMà�^‰^×ÕØ*.×*@Ñ*@ÀÓ*GˆDŒJ÷ ××Òús   ¹AÁA+	)r=   ©
r.   r/   r0   r1   r2   r3   r   r6   r7   r8   r9   s   @@r   r;   r;   I   s.   ù‡ € ñð* €Ið	Hð '+÷		H÷ 	Hõ 	Hr   r;   c                   óR   a a€ ] tR t^mt oRtRtRRR/V3R lV 3R lllltRtVtV ;t	# )ÚInputStoryContentVideoa‰  
Describes a video to post as a story.

.. versionadded:: 22.1

Args:
    video (:term:`file object` | :obj:`bytes` | :class:`pathlib.Path` | :obj:`str`,             optional): The video to post as a story. The video must be of
        the size :tg-const:`telegram.constants.InputStoryContentLimit.VIDEO_WIDTH`
        x :tg-const:`telegram.constants.InputStoryContentLimit.VIDEO_HEIGHT`,
        streamable, encoded with ``H.265`` codec, with key frames added
        each second in the ``MPEG4`` format, and must not exceed
        :tg-const:`telegram.constants.InputStoryContentLimit.VIDEOSIZE_UPLOAD` MB.
        |uploadinputnopath|.
    duration (:class:`datetime.timedelta` | :obj:`int` | :obj:`float`, optional): Precise
        duration of the video in seconds;
        0-:tg-const:`telegram.constants.InputStoryContentLimit.MAX_VIDEO_DURATION`
    cover_frame_timestamp (:class:`datetime.timedelta` | :obj:`int` | :obj:`float`, optional):
        Timestamp in seconds of the frame that will be used as the static cover for the story.
        Defaults to ``0.0``.
    is_animation (:obj:`bool`, optional): Pass :obj:`True` if the video has no sound

Attributes:
    type (:obj:`str`): Type of the content, must be :attr:`~telegram.InputStoryContent.VIDEO`.
    video (:class:`telegram.InputFile`): The video to post as a story. The video must be of
        the size :tg-const:`telegram.constants.InputStoryContentLimit.VIDEO_WIDTH`
        x :tg-const:`telegram.constants.InputStoryContentLimit.VIDEO_HEIGHT`,
        streamable, encoded with ``H.265`` codec, with key frames added
        each second in the ``MPEG4`` format, and must not exceed
        :tg-const:`telegram.constants.InputStoryContentLimit.VIDEOSIZE_UPLOAD` MB.
    duration (:class:`datetime.timedelta`): Optional. Precise duration of the video in seconds;
        0-:tg-const:`telegram.constants.InputStoryContentLimit.MAX_VIDEO_DURATION`
    cover_frame_timestamp (:class:`datetime.timedelta`): Optional. Timestamp in seconds of the
        frame that will be used as the static cover for the story. Defaults to ``0.0``.
    is_animation (:obj:`bool`): Optional. Pass :obj:`True` if the video has no sound
Nr   c                ó¼   <€ V ^8„  d   QhRS[ RS[S[P                  ,          R,          RS[S[P                  ,          R,          RS[R,          RS[R,          RR/# )r   ÚvideoÚdurationNÚcover_frame_timestampÚis_animationr   r   )r   ÚfloatÚdtmÚ	timedeltaÚboolr   )r   r   s   "€r   r   Ú#InputStoryContentVideo.__annotate__•   sk   ø€ ÷ :ñ :áð:ñ ™#Ÿ-™-Õ'¨$Õ.ð:ñ  %¡s§}¡}Õ4°tÕ;ð	:ñ
 ˜T•kð:ñ ˜t•Oð:ð 
ñ:r   c               ó(  <€ \         SV `  \        P                  VR 7       V P	                  4       ;_uu_ 4        V P                  V4      V n        \        V4      V n        \        V4      V n	        W@n
        RRR4       R#   + '       g   i     R# ; ir@   )r   r   r   r-   rA   r)   rG   r   rH   rI   rJ   )r!   rG   rH   rI   rJ   r   r"   s   &&&&&$€r   r   ÚInputStoryContentVideo.__init__•   sl   ø€ ô 	‰ÑÔ/×5Ñ5À*ÐÔMà�^‰^×ÕØ*.×*@Ñ*@ÀÓ*GˆDŒJÜ2>¸xÓ2HˆDŒMÜ?KÐLaÓ?bˆDÔ&Ø-9Ô÷	 ××Òús   ¹=B Â B	)rI   rH   rJ   rG   )NNNrC   r9   s   @@r   rE   rE   m   s,   ù‡ € ñ#ðJ O€Iñ:ð '+÷:÷ :ö :r   rE   )r2   ÚdatetimerL   Útypingr   Útelegramr   Útelegram._files.inputfiler   Útelegram._telegramobjectr   Útelegram._utilsr   Útelegram._utils.argumentparsingr   Útelegram._utils.filesr	   Útelegram._utils.typesr   r   r   r;   rE   © r   r   Ú<module>r\      sR   ðñ& Jã Ý å Ý /Ý 3Ý  Ý 8Ý 2ß 5ô%J˜ô %JôP!HÐ.ô !HôH7:Ð.ö 7:r   