§
    «eîio  ã                   óÎ   — 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 ddlmZ dd	lmZmZ erdd
lmZ  G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        ZdS )zSThis module contains an objects that represents a InputProfilePhoto and subclasses.é    N)ÚTYPE_CHECKING)Ú	constants)ÚTelegramObject)Úenum)Úto_timedelta)Úparse_file_input)Ú	FileInputÚJSONDict)Ú	InputFilec                   óp   ‡ — e Zd ZdZej        j        Z	 ej        j        Z	 dZddœde	de
dz  fˆ fd„Zˆ xZS )ÚInputProfilePhotoaD  This object describes a profile photo to set. Currently, it can be one of

    * :class:`InputProfilePhotoStatic`
    * :class:`InputProfilePhotoAnimated`

    .. versionadded:: 22.1

    Args:
        type (:obj:`str`): Type of the profile photo.

    Attributes:
        type (:obj:`str`): Type of the profile photo.

    )ÚtypeN©Ú
api_kwargsr   r   c                ó¾   •— t          ¦   «                              |¬¦  «         t          j        t          j        ||¦  «        | _        |                      ¦   «          d S )Nr   )ÚsuperÚ__init__r   Ú
get_memberr   ÚInputProfilePhotoTyper   Ú_freeze)Úselfr   r   Ú	__class__s      €úe/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_files/inputprofilephoto.pyr   zInputProfilePhoto.__init__:   sJ   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/Ýœ­Ô)HÈ$ÐPTÑUÔUˆŒ	à�Š‰Œˆˆˆó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚSTATICÚANIMATEDÚ	__slots__Ústrr
   r   Ú__classcell__©r   s   @r   r   r   #   s�   ø€ € € € € ðð ð Ô,Ô3€FØRØÔ.Ô7€HØTà€Ið '+ð		ð 	ð 	àð	ð ˜t‘Oð		ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	r   r   c                   ó<   ‡ — e Zd ZdZdZddœdededz  fˆ fd„Zˆ xZS )ÚInputProfilePhotoStatica¹  A static profile photo in the .JPG format.

    .. versionadded:: 22.1

    Args:
        photo (:term:`file object` | :class:`~telegram.InputFile` | :obj:`bytes` |             :class:`pathlib.Path`): The static profile photo. |uploadinputnopath|

    Attributes:
        type (:obj:`str`): :tg-const:`telegram.constants.InputProfilePhotoType.STATIC`.
        photo (:class:`telegram.InputFile` | :obj:`str`): The static profile photo.

    )ÚphotoNr   r'   r   c                óô   •— t          ¦   «                              t          j        j        |¬¦  «         |                      ¦   «         5  t          |dd¬¦  «        | _        d d d ¦  «         d S # 1 swxY w Y   d S ©N)r   r   T)ÚattachÚ
local_mode)r   r   r   r   r   Ú	_unfrozenr   r'   )r   r'   r   r   s      €r   r   z InputProfilePhotoStatic.__init__W   sÊ   ø€ õ 	‰Œ×Ò�iÔ=ÔDÐQ[ÐÑ\Ô\Ð\Ø�^Š^ÑÔð 	`ð 	`õ +;¸5ÈÐZ^Ð*_Ñ*_Ô*_ˆDŒJð	`ð 	`ð 	`ñ 	`ô 	`ð 	`ð 	`ð 	`ð 	`ð 	`ð 	`ð 	`øøøð 	`ð 	`ð 	`ð 	`ð 	`ð 	`s   ÁA-Á-A1Á4A1)	r   r   r   r   r!   r	   r
   r   r#   r$   s   @r   r&   r&   F   s�   ø€ € € € € ðð ð €Ið '+ð	
`ð 
`ð 
`àð
`ð ˜t‘Oð	
`ð 
`ð 
`ð 
`ð 
`ð 
`ð 
`ð 
`ð 
`ð 
`r   r&   c            	       óZ   ‡ — e Zd ZdZdZ	 d	ddœdedeej        z  dz  de	dz  fˆ fd„Z
ˆ xZS )
ÚInputProfilePhotoAnimatedab  An animated profile photo in the MPEG4 format.

    .. versionadded:: 22.1

    Args:
        animation (:term:`file object` | :class:`~telegram.InputFile` | :obj:`bytes` |             :class:`pathlib.Path`): The animated profile photo. |uploadinputnopath|
        main_frame_timestamp (:class:`datetime.timedelta` | :obj:`int` | :obj:`float`, optional):
            Timestamp in seconds of the frame that will be used as the static profile photo.
            Defaults to ``0.0``.

    Attributes:
        type (:obj:`str`): :tg-const:`telegram.constants.InputProfilePhotoType.ANIMATED`.
        animation (:class:`telegram.InputFile` | :obj:`str`): The animated profile photo.
        main_frame_timestamp (:class:`datetime.timedelta`): Optional. Timestamp in seconds of the
            frame that will be used as the static profile photo. Defaults to ``0.0``.
    )Ú	animationÚmain_frame_timestampNr   r/   r0   r   c                ó  •— t          ¦   «                              t          j        j        |¬¦  «         |                      ¦   «         5  t          |dd¬¦  «        | _        t          |¦  «        | _	        d d d ¦  «         d S # 1 swxY w Y   d S r)   )
r   r   r   r   r    r,   r   r/   r   r0   )r   r/   r0   r   r   s       €r   r   z"InputProfilePhotoAnimated.__init__y   sä   ø€ õ 	‰Œ×Ò�iÔ=ÔFÐS]ÐÑ^Ô^Ð^Ø�^Š^ÑÔð 	að 	aõ /?Ø $°4ð/ñ /ô /ˆDŒNõ ?KÐK_Ñ>`Ô>`ˆDÔ%ð	að 	að 	añ 	aô 	að 	að 	að 	að 	að 	að 	að 	aøøøð 	að 	að 	að 	að 	að 	as   Á,BÂBÂB)N)r   r   r   r   r!   r	   ÚfloatÚdtmÚ	timedeltar
   r   r#   r$   s   @r   r.   r.   d   s¤   ø€ € € € € ðð ð$ 6€Ið
 >Bðað
 '+ðað að aàðað $ c¤mÑ3°dÑ:ðað
 ˜t‘Oðað að að að að að að að að ar   r.   )r   Údatetimer3   Útypingr   Útelegramr   Útelegram._telegramobjectr   Útelegram._utilsr   Útelegram._utils.argumentparsingr   Útelegram._utils.filesr   Útelegram._utils.typesr	   r
   r   r   r&   r.   © r   r   ú<module>r>      sU  ðð& ZÐ Yà Ð Ð Ð Ø  Ð  Ð  Ð  Ð  Ð  à Ð Ð Ð Ð Ð Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø  Ð  Ð  Ð  Ð  Ð  Ø 8Ð 8Ð 8Ð 8Ð 8Ð 8Ø 2Ð 2Ð 2Ð 2Ð 2Ð 2Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5àð #Ø"Ð"Ð"Ð"Ð"Ð"ð ð  ð  ð  ð  ˜ñ  ô  ð  ðF`ð `ð `ð `ð `Ð/ñ `ô `ð `ð<$að $að $að $að $aÐ 1ñ $aô $að $að $að $ar   