§
    «eîi   ã                   ób   — 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
mZ  G d„ de¦  «        ZdS )	z@This module contains an object that represents a Telegram Voice.é    N)Ú_BaseMedium)Ú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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 )ÚVoicea=  This object represents a voice note.

    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.

    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.
        duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the audio in
            seconds as defined by the sender.

            .. versionchanged:: v22.2
                |time-period-input|
        mime_type (:obj:`str`, optional): MIME type of the file as defined by the sender.
        file_size (:obj:`int`, optional): File size in bytes.

    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.
        duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the audio in seconds as
            defined by the sender.

            .. deprecated:: v22.2
                |time-period-int-deprecated|
        mime_type (:obj:`str`): Optional. MIME type of the file as defined by the sender.
        file_size (:obj:`int`): Optional. File size in bytes.

    )Ú	_durationÚ	mime_typeN)Ú
api_kwargsÚfile_idÚfile_unique_idÚdurationr   Ú	file_sizer   c                óâ   •— t          ¦   «                              ||||¬¦  «         |                      ¦   «         5  t          |¦  «        | _        || _        d d d ¦  «         d S # 1 swxY w Y   d S )N)r   r   r   r   )ÚsuperÚ__init__Ú	_unfrozenr   r
   r   )Úselfr   r   r   r   r   r   Ú	__class__s          €úY/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_files/voice.pyr   zVoice.__init__C   s¾   ø€ õ 	‰Œ×ÒØØ)ØØ!ð	 	ñ 	
ô 	
ð 	
ð �^Š^ÑÔð 	3ð 	3å,8¸Ñ,BÔ,BˆDŒNà)2ˆDŒNð		3ð 	3ð 	3ñ 	3ô 	3ð 	3ð 	3ð 	3ð 	3ð 	3ð 	3ð 	3øøøð 	3ð 	3ð 	3ð 	3ð 	3ð 	3s   »A$Á$A(Á+A(Úreturnc                 ó.   — t          | j        d¬¦  «        S )Nr   )Ú	attribute)r   r
   )r   s    r   r   zVoice.durationY   s    € å"ØŒN jð
ñ 
ô 
ð 	
ó    )NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr   Úintr   r   ÚpropertyÚdtmÚ	timedeltar   Ú__classcell__)r   s   @r   r	   r	      sß   ø€ € € € € ð!ð !ðF +€Ið !%Ø $ð3ð '+ð3ð 3ð 3àð3ð ð3ð ð	3ð
 ˜‘:ð3ð ˜‘:ð3ð ˜t‘Oð3ð 3ð 3ð 3ð 3ð 3ð, ð
˜# ¤Ñ-ð 
ð 
ð 
ñ „Xð
ð 
ð 
ð 
ð 
r   r	   )r   Údatetimer$   Útelegram._files._basemediumr   Útelegram._utils.argumentparsingr   Útelegram._utils.datetimer   Útelegram._utils.typesr   r   r	   © r   r   ú<module>r-      s¦   ðð& GÐ Fà Ð Ð Ð à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø 8Ð 8Ð 8Ð 8Ð 8Ð 8Ø 8Ð 8Ð 8Ð 8Ð 8Ð 8Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6ð@
ð @
ð @
ð @
ð @
ˆKñ @
ô @
ð @
ð @
ð @
r   