Ë
    †jo  ã                   óº   — 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y)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                   ó˜   ‡ — 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
                  ||«      | _        | j                  «        y )Nr   )ÚsuperÚ__init__r   Ú
get_memberr   ÚInputProfilePhotoTyper   Ú_freeze)Úselfr   r   Ú	__class__s      €ú`/var/www/html/datingFans/myenv/lib/python3.12/site-packages/telegram/_files/inputprofilephoto.pyr   zInputProfilePhoto.__init__:   s9   ø€ ô 	‰Ñ JÐÔ/ÜŸ™¬×)HÑ)HÈ$ÐPTÓUˆŒ	à�‰�ó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚSTATICÚANIMATEDÚ	__slots__Ústrr
   r   Ú__classcell__©r   s   @r   r   r   #   s\   ø„ ñð ×,Ñ,×3Ñ3€FØRØ×.Ñ.×7Ñ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                  |¬«       | j                  «       5  t        |dd¬«      | _        d d d «       y # 1 sw Y   y xY w©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   sZ   ø€ ô 	‰Ñœi×=Ñ=×DÑDÐQ[ÐÔ\Ø�^‰^Óñ 	`ô +;¸5ÈÐZ^Ô*_ˆDŒJ÷	`÷ 	`ñ 	`ús   »AÁA!)	r   r   r   r   r!   r	   r
   r   r#   r$   s   @r   r&   r&   F   s8   ø„ ñð €Ið '+ò	
`àð
`ð ˜t‘O÷	
`ñ 
`r   r&   c            	       ód   ‡ — 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                  |¬«       | j                  «       5  t        |dd¬«      | _        t        |«      | _	        d d d «       y # 1 sw Y   y xY wr)   )
r   r   r   r   r    r,   r   r/   r   r0   )r   r/   r0   r   r   s       €r   r   z"InputProfilePhotoAnimated.__init__y   sm   ø€ ô 	‰Ñœi×=Ñ=×FÑFÐS]ÐÔ^Ø�^‰^Óñ 	aô /?Ø $°4ô/ˆDŒNô ?KÐK_Ó>`ˆDÔ%÷	a÷ 	añ 	aús   »$A(Á(A1)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ð $ c§m¡mÑ3°dÑ:ðað
 ˜t‘O÷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>      sT   ðñ& Zã Ý  å Ý 3Ý  Ý 8Ý 2ß 5áÝ"ô ˜ô  ôF`Ð/ô `ô<$aÐ 1õ $ar   