§
    «eîi»  ã                   ój   — d Z ddlmZ ddlmZ ddlmZ ddlmZm	Z	 erddl
mZ  G d„ de¦  «        Zd	S )
z#Common base class for media objectsé    )ÚTYPE_CHECKING)ÚTelegramObject)ÚDEFAULT_NONE)ÚJSONDictÚODVInput)ÚFilec                   ó²   ‡ — e Zd ZdZdZ	 dddœdedededz  dedz  fˆ fd	„Ze	e	e	e	dd
œde
e         de
e         de
e         de
e         dedz  ddfd„Zˆ xZS )Ú_BaseMediuma«  Base class for objects representing the various media file types.
    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.
        file_size (:obj:`int`, optional): File size.

    Attributes:
        file_id (:obj:`str`): File identifier.
        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.
        file_size (:obj:`int`): Optional. File size.


    )Úfile_idÚ	file_sizeÚfile_unique_idN©Ú
api_kwargsr   r   r   r   c                óÄ   •— t          ¦   «                              |¬¦  «         t          |¦  «        | _        t          |¦  «        | _        || _        | j        f| _        d S )Nr   )ÚsuperÚ__init__Ústrr   r   r   Ú	_id_attrs)Úselfr   r   r   r   Ú	__class__s        €ú_/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_files/_basemedium.pyr   z_BaseMedium.__init__8   sW   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/õ   ™LœLˆŒÝ#& ~Ñ#6Ô#6ˆÔà%.ˆŒàÔ-Ð/ˆŒˆˆó    )Úread_timeoutÚwrite_timeoutÚconnect_timeoutÚpool_timeoutr   r   r   r   r   Úreturnr   c             ƒ   óv   K  — |                       ¦   «                              | j        |||||¬¦  «        ƒ d{V —†S )a  Convenience wrapper over :meth:`telegram.Bot.get_file`

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

        Returns:
            :class:`telegram.File`

        Raises:
            :class:`telegram.error.TelegramError`

        )r   r   r   r   r   r   N)Úget_botÚget_filer   )r   r   r   r   r   r   s         r   r    z_BaseMedium.get_fileJ   s_   è è € ð( —\’\‘^”^×,Ò,Ø”LØ%Ø'Ø+Ø%Ø!ð -ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
ð 	
r   )N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   Úintr   r   r   r   Úfloatr    Ú__classcell__)r   s   @r   r
   r
      s  ø€ € € € € ðð ð, ;€Ið !%ð	0ð '+ð0ð 0ð 0àð0ð ð0ð ˜‘:ð	0ð ˜t‘Oð0ð 0ð 0ð 0ð 0ð 0ð* )5Ø)5Ø+7Ø(4Ø&*ð
ð 
ð 
ð ˜u”oð
ð   ”ð	
ð
 " %œð
ð ˜u”oð
ð ˜t‘Oð
ð 
ð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r   r
   N)r$   Útypingr   Útelegram._telegramobjectr   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr   r   Útelegramr   r
   © r   r   ú<module>r/      s³   ðð& *Ð )à  Ð  Ð  Ð  Ð  Ð  à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4àð ØÐÐÐÐÐðF
ð F
ð F
ð F
ð F
�.ñ F
ô F
ð F
ð F
ð F
r   