
    YPi?                     n    d Z ddlmZ ddl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y
)zLThis module contains an object that represents a Telegram UserProfilePhotos.    )Sequence)TYPE_CHECKINGOptional)	PhotoSize)TelegramObject)JSONDict)Botc                   v     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d	e	d
ed   d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| _        | j                          y )Nr   c              3   2   K   | ]  }t        |        y wN)tuple).0sizess     Q/root/twitch_bot/venv/lib/python3.12/site-packages/telegram/_userprofilephotos.py	<genexpr>z-UserProfilePhotos.__init__.<locals>.<genexpr>D   s     >`PUuU|>`s   )super__init__r   r   r   	_id_attrs_freeze)selfr   r   r   	__class__s       r   r   zUserProfilePhotos.__init__:   sO     	J/ +9>>`Y_>`9`**DKK8    databotr	   returnc                     | j                  |      }|d   D cg c]  }t        j                  ||       c}|d<   t        |   ||      S c c}w )z,See :meth:`telegram.TelegramObject.de_json`.r   )r   r    )_parse_datar   de_listr   de_json)clsr   r    photor   s       r   r%   zUserProfilePhotos.de_jsonJ   sQ     t$EI(^TE)++E37TXwDc22 Us   Ar   )__name__
__module____qualname____doc__	__slots__intr   r   r   r   r   classmethodr%   __classcell__)r   s   @r   r   r       sr    . *I *. ),-
 X&  38 3(5/ 3EX 3 3r   r   N)r+   collections.abcr   typingr   r   telegram._files.photosizer   telegram._telegramobjectr   telegram._utils.typesr   telegramr	   r    r   r   <module>r7      s,   & S $ * / 3 *13 13r   