
    i[                     r    d Z ddlmZmZmZmZ ddlmZ ddlm	Z	 ddl
mZ erddlmZ  G d de	          Zd	S )
zLThis module contains an object that represents a Telegram UserProfilePhotos.    )TYPE_CHECKINGOptionalSequenceTuple)	PhotoSize)TelegramObject)JSONDict)Botc                        e Zd ZdZdZdddedeee                  dee	         f fdZ
ed	ee	         d
dded          f fd            Z xZS )UserProfilePhotosa.  This object represents a user's profile pictures.

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

    Args:
        total_count (:obj:`int`): Total number of profile pictures the target user has.
        photos (Sequence[Sequence[:class:`telegram.PhotoSize`]]): Requested profile pictures (in up
            to 4 sizes each).

            .. versionchanged:: 20.0
                |sequenceclassargs|

    Attributes:
        total_count (:obj:`int`): Total number of profile pictures.
        photos (Tuple[Tuple[:class:`telegram.PhotoSize`]]): Requested profile pictures (in up to 4
            sizes each).

            .. versionchanged:: 20.0
                |tupleclassattrs|

    )photostotal_countN
api_kwargsr   r   r   c                    t                                          |           || _        t          d |D                       | _        | j        | j        f| _        |                                  d S )Nr   c              3   4   K   | ]}t          |          V  d S )N)tuple).0sizess     a/var/www/html/crypto-bot/backend/venv/lib/python3.11/site-packages/telegram/_userprofilephotos.py	<genexpr>z-UserProfilePhotos.__init__.<locals>.<genexpr>B   s)      >`>`PUuU||>`>`>`>`>`>`    )super__init__r   r   r   	_id_attrs_freeze)selfr   r   r   	__class__s       r   r   zUserProfilePhotos.__init__8   si     	J/// +9>>`>`Y_>`>`>`9`9`*DK8r   databotr
   returnc                     |                      |          }|sdS fd|d         D             |d<   t                                          |          S )z,See :meth:`telegram.TelegramObject.de_json`.Nc                 :    g | ]}t          j        |          S  )r   de_list)r   photor    s     r   
<listcomp>z-UserProfilePhotos.de_json.<locals>.<listcomp>P   s&    TTTE)+E377TTTr   r   )r   r    )_parse_datar   de_json)clsr   r    r   s     `r   r)   zUserProfilePhotos.de_jsonH   s_     t$$ 	4TTTTT(^TTTXwwDc222r   )__name__
__module____qualname____doc__	__slots__intr   r   r   r	   r   classmethodr)   __classcell__)r   s   @r   r   r      s         . *I *.   ),-
 X&       	38H- 	3E 	3hGZ>[ 	3 	3 	3 	3 	3 [	3 	3 	3 	3 	3r   r   N)r.   typingr   r   r   r   telegram._files.photosizer   telegram._telegramobjectr   telegram._utils.typesr	   telegramr
   r   r$   r   r   <module>r8      s   & S R ; ; ; ; ; ; ; ; ; ; ; ; / / / / / / 3 3 3 3 3 3 * * * * * * 43 43 43 43 43 43 43 43 43 43r   