§
    «eîiÿ  ã                   ón   — 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dS )
zDThis module contains an object that represents a Telegram VideoNote.é    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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 )Ú	VideoNoteaº  This object represents a video message (available in Telegram apps as of v.4.0).

    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.
        length (:obj:`int`): Video width and height (diameter of the video message) as defined
            by sender.
        duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video in
            seconds as defined by the sender.

            .. versionchanged:: v22.2
                |time-period-input|
        file_size (:obj:`int`, optional): File size in bytes.
        thumbnail (:class:`telegram.PhotoSize`, optional): Video thumbnail.

            .. 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.
        length (:obj:`int`): Video width and height (diameter of the video message) as defined
            by 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_size (:obj:`int`): Optional. File size in bytes.
        thumbnail (:class:`telegram.PhotoSize`): Optional. Video thumbnail.

            .. versionadded:: 20.2

    )Ú	_durationÚlengthN)Ú
api_kwargsÚfile_idÚfile_unique_idr   ÚdurationÚ	file_sizeÚ	thumbnailr   c                óä   •— t          ¦   «                              |||||¬¦  «         |                      ¦   «         5  || _        t	          |¦  «        | _        d d d ¦  «         d S # 1 swxY w Y   d S )N)r   r   r   r   r   )ÚsuperÚ__init__Ú	_unfrozenr   r   r   )	Úselfr   r   r   r   r   r   r   Ú	__class__s	           €ú]/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_files/videonote.pyr   zVideoNote.__init__O   sÕ   ø€ õ 	‰Œ×ÒØØ)ØØØ!ð 	ñ 	
ô 	
ð 	
ð �^Š^ÑÔð 	Cð 	Cà%ˆDŒKÝ,8¸Ñ,BÔ,BˆDŒNð	Cð 	Cð 	Cñ 	Cô 	Cð 	Cð 	Cð 	Cð 	Cð 	Cð 	Cð 	Cøøøð 	Cð 	Cð 	Cð 	Cð 	Cð 	Cs   ¼A%Á%A)Á,A)Úreturnc                 ó.   — t          | j        d¬¦  «        S )Nr   )Ú	attribute)r   r   )r   s    r   r   zVideoNote.durationf   s    € å"ØŒN jð
ñ 
ô 
ð 	
ó    )NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__ÚstrÚintr   r   r   r   ÚpropertyÚdtmÚ	timedeltar   Ú__classcell__)r   s   @r   r
   r
      sú   ø€ € € € € ð,ð ,ð\ (€Ið !%Ø&*ðCð '+ðCð Cð CàðCð ðCð ð	Cð
 ðCð ˜‘:ðCð ˜tÑ#ðCð ˜t‘OðCð Cð Cð Cð Cð Cð. ð
˜# ¤Ñ-ð 
ð 
ð 
ñ „Xð
ð 
ð 
ð 
ð 
r   r
   )r!   Údatetimer&   Ú"telegram._files._basethumbedmediumr   Útelegram._files.photosizer   Útelegram._utils.argumentparsingr   Útelegram._utils.datetimer   Útelegram._utils.typesr   r   r
   © r   r   ú<module>r0      s¹   ðð& KÐ Jà Ð Ð Ð à AÐ AÐ AÐ AÐ AÐ AØ /Ð /Ð /Ð /Ð /Ð /Ø 8Ð 8Ð 8Ð 8Ð 8Ð 8Ø 8Ð 8Ð 8Ð 8Ð 8Ð 8Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6ðL
ð L
ð L
ð L
ð L
Ð"ñ L
ô L
ð L
ð L
ð L
r   