§
    «eîi¦  ã                   óz   — d Z ddlmZm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 )zDThis module contains an object that represents a Telegram ChatPhoto.é    )ÚTYPE_CHECKINGÚFinal)Ú	constants)ÚTelegramObject)ÚDEFAULT_NONE)ÚJSONDictÚODVInput)ÚFilec                   óp  ‡ — e Zd ZU dZdZddœdededede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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ej        j        Zee         ed<   	 ej        j        Zee         ed<   ˆ xZS )Ú	ChatPhotoaš
  This object represents a chat photo.

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

    Args:
        small_file_id (:obj:`str`): File identifier of small
            (:tg-const:`telegram.ChatPhoto.SIZE_SMALL` x :tg-const:`telegram.ChatPhoto.SIZE_SMALL`)
            chat photo. This file_id can be used only for photo download and only for as long
            as the photo is not changed.
        small_file_unique_id (:obj:`str`): Unique file identifier of small
            (:tg-const:`telegram.ChatPhoto.SIZE_SMALL` x :tg-const:`telegram.ChatPhoto.SIZE_SMALL`)
            chat photo, which is supposed to be the same over time and for different bots.
            Can't be used to download or reuse the file.
        big_file_id (:obj:`str`): File identifier of big
            (:tg-const:`telegram.ChatPhoto.SIZE_BIG` x :tg-const:`telegram.ChatPhoto.SIZE_BIG`)
            chat photo. This file_id can be used only for photo download and only for as long as
            the photo is not changed.
        big_file_unique_id (:obj:`str`): Unique file identifier of big
            (:tg-const:`telegram.ChatPhoto.SIZE_BIG` x :tg-const:`telegram.ChatPhoto.SIZE_BIG`)
            chat photo, which is supposed to be the same over time and for different bots.
            Can't be used to download or reuse the file.

    Attributes:
        small_file_id (:obj:`str`): File identifier of small
            (:tg-const:`telegram.ChatPhoto.SIZE_SMALL` x :tg-const:`telegram.ChatPhoto.SIZE_SMALL`)
            chat photo. This file_id can be used only for photo download and only for as long
            as the photo is not changed.
        small_file_unique_id (:obj:`str`): Unique file identifier of small
            (:tg-const:`telegram.ChatPhoto.SIZE_SMALL` x :tg-const:`telegram.ChatPhoto.SIZE_SMALL`)
            chat photo, which is supposed to be the same over time and for different bots.
            Can't be used to download or reuse the file.
        big_file_id (:obj:`str`): File identifier of big
            (:tg-const:`telegram.ChatPhoto.SIZE_BIG` x :tg-const:`telegram.ChatPhoto.SIZE_BIG`)
            chat photo. This file_id can be used only for photo download and only for as long as
            the photo is not changed.
        big_file_unique_id (:obj:`str`): Unique file identifier of big
            (:tg-const:`telegram.ChatPhoto.SIZE_BIG` x :tg-const:`telegram.ChatPhoto.SIZE_BIG`)
            chat photo, which is supposed to be the same over time and for different bots.
            Can't be used to download or reuse the file.

    )Úbig_file_idÚbig_file_unique_idÚsmall_file_idÚsmall_file_unique_idN©Ú
api_kwargsr   r   r   r   r   c                óÒ   •— t          ¦   «                              |¬¦  «         || _        || _        || _        || _        | j        | j        f| _        |                      ¦   «          d S )Nr   )ÚsuperÚ__init__r   r   r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   r   r   Ú	__class__s         €ú]/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_files/chatphoto.pyr   zChatPhoto.__init__T   sj   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/Ø"/ˆÔØ)=ˆÔ!Ø +ˆÔØ'9ˆÔð Ô%ØÔ#ð
ˆŒð
 	�Š‰Œˆˆˆó    )Ú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 getting the small
        (:tg-const:`telegram.ChatPhoto.SIZE_SMALL` x :tg-const:`telegram.ChatPhoto.SIZE_SMALL`)
        chat photo

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

        Returns:
            :class:`telegram.File`

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

        ©Úfile_idr   r   r   r   r   N)Úget_botÚget_filer   ©r   r   r   r   r   r   s         r   Úget_small_filezChatPhoto.get_small_filej   s`   è è € ð, —\’\‘^”^×,Ò,ØÔ&Ø%Ø'Ø+Ø%Ø!ð -ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
ð 	
r   c             ƒ   óv   K  — |                       ¦   «                              | j        |||||¬¦  «        ƒ d{V —†S )a–  Convenience wrapper over :meth:`telegram.Bot.get_file` for getting the
        big (:tg-const:`telegram.ChatPhoto.SIZE_BIG` x :tg-const:`telegram.ChatPhoto.SIZE_BIG`)
        chat photo

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

        Returns:
            :class:`telegram.File`

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

        r"   N)r$   r%   r   r&   s         r   Úget_big_filezChatPhoto.get_big_file‰   s`   è è € ð, —\’\‘^”^×,Ò,ØÔ$Ø%Ø'Ø+Ø%Ø!ð -ñ 
ô 
ð 
ð 
ð 
ð 
ð 
ð 
ð 	
r   Ú
SIZE_SMALLÚSIZE_BIG)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr   r   r   r	   Úfloatr'   r)   r   ÚChatPhotoSizeÚSMALLr*   r   ÚintÚ__annotations__ÚBIGr+   Ú__classcell__)r   s   @r   r   r       sÐ  ø€ € € € € € ð*ð *ðX€Ið '+ðð ð àðð "ðð ð	ð
  ðð ˜t‘Oðð ð ð ð ð ð2 )5Ø)5Ø+7Ø(4Ø&*ð
ð 
ð 
ð ˜u”oð
ð   ”ð	
ð
 " %œð
ð ˜u”oð
ð ˜t‘Oð
ð 
ð
ð 
ð 
ð 
ðD )5Ø)5Ø+7Ø(4Ø&*ð
ð 
ð 
ð ˜u”oð
ð   ”ð	
ð
 " %œð
ð ˜u”oð
ð ˜t‘Oð
ð 
ð
ð 
ð 
ð 
ð> 'Ô4Ô:€J��c”
Ð:Ð:Ñ:ðð %Ô2Ô6€Hˆe�CŒjÐ6Ð6Ñ6ðð ð ð r   r   N)r/   Útypingr   r   Útelegramr   Útelegram._telegramobjectr   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr   r	   r
   r   © r   r   ú<module>r?      sÌ   ðð& KÐ Jà 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'à Ð Ð Ð Ð Ð Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4àð ØÐÐÐÐÐðQð Qð Qð Qð Q�ñ Qô Qð Qð Qð Qr   