Ë
    †j  ã                   óf   — d Z ddl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  G d„ d	e«      Zy)
zDThis module contains an object that represents a Telegram Animation.é    N)Ú_BaseThumbedMedium)Ú	PhotoSize)Úto_timedelta)Úget_timedelta_value)ÚJSONDictÚ
TimePeriodc                   ó®   ‡ — e Zd ZdZdZ	 	 	 	 dddœdedededed	ed
edz  dedz  dedz  dedz  de	dz  fˆ fd„Z
edeej                  z  fd„«       Zˆ xZS )Ú	Animationa©	  This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).

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

    .. versionchanged:: 20.5
      |removed_thumb_note|

    Args:
        file_id (:obj:`str`): Identifier for this file, which can be used to download
            or reuse the file.
        file_unique_id (:obj:`str`): Unique identifier for this file, which
            is supposed to be the same over time and for different bots.
            Can't be used to download or reuse the file.
        width (:obj:`int`): Video width as defined by the sender.
        height (:obj:`int`): Video height as defined by the sender.
        duration (:obj:`int` | :class:`datetime.timedelta`, optional): Duration of the video
            in seconds as defined by the sender.

            .. versionchanged:: v22.2
                |time-period-input|
        file_name (:obj:`str`, optional): Original animation filename as defined by the sender.
        mime_type (:obj:`str`, optional): MIME type of the file as defined by the sender.
        file_size (:obj:`int`, optional): File size in bytes.
        thumbnail (:class:`telegram.PhotoSize`, optional): Animation thumbnail as defined by
            sender.

            .. versionadded:: 20.2

    Attributes:
        file_id (:obj:`str`): Identifier for this file, which can be used to download
            or reuse the file.
        file_unique_id (:obj:`str`): Unique identifier for this file, which
            is supposed to be the same over time and for different bots.
            Can't be used to download or reuse the file.
        width (:obj:`int`): Video width as defined by the sender.
        height (:obj:`int`): Video height as defined by the sender.
        duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video in seconds
            as defined by the sender.

            .. deprecated:: v22.2
                |time-period-int-deprecated|
        file_name (:obj:`str`): Optional. Original animation filename as defined by the sender.
        mime_type (:obj:`str`): Optional. MIME type of the file as defined by the sender.
        file_size (:obj:`int`): Optional. File size in bytes.
        thumbnail (:class:`telegram.PhotoSize`): Optional. Animation thumbnail as defined by
            sender.

            .. versionadded:: 20.2

    )Ú	_durationÚ	file_nameÚheightÚ	mime_typeÚwidthN)Ú
api_kwargsÚfile_idÚfile_unique_idr   r   Údurationr   r   Ú	file_sizeÚ	thumbnailr   c
                óÐ   •— t         ‰| �  ||||
|	¬«       | j                  «       5  || _        || _        t        |«      | _        || _        || _        d d d «       y # 1 sw Y   y xY w)N)r   r   r   r   r   )	ÚsuperÚ__init__Ú	_unfrozenr   r   r   r   r   r   )Úselfr   r   r   r   r   r   r   r   r   r   Ú	__class__s              €úX/var/www/html/datingFans/myenv/lib/python3.12/site-packages/telegram/_files/animation.pyr   zAnimation.__init__U   so   ø€ ô 	‰ÑØØ)ØØ!Øð 	ô 	
ð �^‰^Óñ 	3à#ˆDŒJØ%ˆDŒKÜ,8¸Ó,BˆDŒNà)2ˆDŒNØ)2ˆDŒN÷	3÷ 	3ñ 	3ús   ¦-AÁA%Úreturnc                 ó0   — t        | j                  d¬«      S )Nr   )Ú	attribute)r   r   )r   s    r   r   zAnimation.durations   s   € ä"Ø�N‰N jô
ð 	
ó    )NNNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__ÚstrÚintr   r   r   r   ÚpropertyÚdtmÚ	timedeltar   Ú__classcell__)r   s   @r   r
   r
      sÉ   ø„ ñ2ðh K€Ið !%Ø $Ø $Ø&*ð3ð '+ò3àð3ð ð3ð ð	3ð
 ð3ð ð3ð ˜‘:ð3ð ˜‘:ð3ð ˜‘:ð3ð ˜tÑ#ð3ð ˜t‘Oõ3ð< ð
˜# §¡Ñ-ò 
ó ô
r    r
   )r$   Údatetimer)   Ú"telegram._files._basethumbedmediumr   Útelegram._files.photosizer   Útelegram._utils.argumentparsingr   Útelegram._utils.datetimer   Útelegram._utils.typesr   r   r
   © r    r   ú<module>r3      s,   ðñ& Kã å AÝ /Ý 8Ý 8ß 6ôY
Ð"õ Y
r    