§
    êd×iî  ã                   ó’   — 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 erddlmZ  edd	d
¬¦  «        Z G d„ d	e¦  «        ZdS )z3Common base class for media objects with thumbnailsé    )ÚTYPE_CHECKINGÚTypeVar)Ú_BaseMedium)Ú	PhotoSize)Úde_json_optional)ÚJSONDict)ÚBotÚThumbedMT_coÚ_BaseThumbedMediumT)ÚboundÚ	covariantc                   ó”   ‡ — e Zd ZdZdZ	 	 dddœdedededz  dedz  d	edz  f
ˆ fd
„Z	e
ddee         dedddefˆ fd„¦   «         Zˆ xZS )r   aÓ  
    Base class for objects representing the various media file types that may include a thumbnail.

    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.
        thumbnail (:class:`telegram.PhotoSize`, optional): Thumbnail as defined by the sender.

            .. versionadded:: 20.2

    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.
        thumbnail (:class:`telegram.PhotoSize`): Optional. Thumbnail as defined by the sender.

            .. versionadded:: 20.2

    )Ú	thumbnailN)Ú
api_kwargsÚfile_idÚfile_unique_idÚ	file_sizer   r   c                ó`   •— t          ¦   «                              ||||¬¦  «         || _        d S )N)r   r   r   r   )ÚsuperÚ__init__r   )Úselfr   r   r   r   r   Ú	__class__s         €ú_/root/projects/qq-shell/venv/lib/python3.11/site-packages/telegram/_files/_basethumbedmedium.pyr   z_BaseThumbedMedium.__init__C   s?   ø€ õ 	‰Œ×ÒØØ)ØØ!ð	 	ñ 	
ô 	
ð 	
ð ,5ˆŒˆˆó    ÚclsÚdataÚbotz
Bot | NoneÚreturnc                 ó|  •— |                       |¦  «        }t          |                     d¦  «        t          ¦  «        s,t	          |                     d¦  «        t          |¦  «        |d<   i }|                     d¦  «        |                     d¦  «        |d<   t          ¦   «                              |||¬¦  «        S )z,See :meth:`telegram.TelegramObject.de_json`.r   ÚthumbN)r   r   r   )Ú_parse_dataÚ
isinstanceÚgetr   r   Úpopr   Ú_de_json)r   r   r   r   r   s       €r   Úde_jsonz_BaseThumbedMedium.de_jsonU   s¨   ø€ ð Š˜tÑ$Ô$ˆõ ˜$Ÿ(š( ;Ñ/Ô/µÑ;Ô;ð 	XÝ 0°·²¸+Ñ1FÔ1FÍ	ÐSVÑ WÔ WˆDÑàˆ
ð 8Š8GÑÔÐ(Ø"&§(¢(¨7Ñ"3Ô"3ˆJwÑå‰wŒw×Ò T¨s¸zÐÑJÔJÐJr   )NN)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__ÚstrÚintr   r   r   ÚclassmethodÚtyper
   r&   Ú__classcell__)r   s   @r   r   r   #   s  ø€ € € € € ðð ð: €Ið !%Ø&*ð5ð '+ð5ð 5ð 5àð5ð ð5ð ˜‘:ð	5ð
 ˜tÑ#ð5ð ˜t‘Oð5ð 5ð 5ð 5ð 5ð 5ð$ ðKð KT˜,Ô'ð K¨xð K¸lð KÐVbð Kð Kð Kð Kð Kñ „[ðKð Kð Kð Kð Kr   N)r*   Útypingr   r   Útelegram._files._basemediumr   Útelegram._files.photosizer   Útelegram._utils.argumentparsingr   Útelegram._utils.typesr   Útelegramr	   r
   r   © r   r   ú<module>r8      sè   ðð& :Ð 9à )Ð )Ð )Ð )Ð )Ð )Ð )Ð )à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø /Ð /Ð /Ð /Ð /Ð /Ø <Ð <Ð <Ð <Ð <Ð <Ø *Ð *Ð *Ð *Ð *Ð *àð ØÐÐÐÐÐð ˆw~Ð-AÈTÐRÑRÔR€ðAKð AKð AKð AKð AK˜ñ AKô AKð AKð AKð AKr   