
    Ii[                     t    S r SSKJrJrJrJr  SSKJr  SSKJ	r	  SSK
Jr  \(       a  SSKJr   " S S\	5      rg	)
zLThis module contains an object that represents a Telegram UserProfilePhotos.    )TYPE_CHECKINGOptionalSequenceTuple)	PhotoSize)TelegramObject)JSONDict)Botc                      ^  \ rS rSrSrSrSS.S\S\\\      S\	\
   4U 4S	 jjjr\S
\	\
   SSS\	S    4U 4S jj5       rSrU =r$ )UserProfilePhotos   a  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U ]  US9  Xl        [        S U 5       5      U l        U R                  U R                  4U l        U R                  5         g )Nr   c              3   8   #    U  H  n[        U5      v   M     g 7f)N)tuple).0sizess     A/venv/lib/python3.13/site-packages/telegram/_userprofilephotos.py	<genexpr>-UserProfilePhotos.__init__.<locals>.<genexpr>B   s     >`Y_PUuU||Y_s   )super__init__r   r   r   	_id_attrs_freeze)selfr   r   r   	__class__s       r   r   UserProfilePhotos.__init__8   sM     	J/ +9>>`Y_>`9`**DKK8    databotr
   returnc                    > U R                  U5      nU(       d  gUS    Vs/ s H  n[        R                  " X25      PM     snUS'   [        TU ]  XS9$ s  snf )z,See :meth:`telegram.TelegramObject.de_json`.Nr   )r"   r#   )_parse_datar   de_listr   de_json)clsr"   r#   photor   s       r   r(   UserProfilePhotos.de_jsonH   sW     t$EI(^T^E)++E7^TXwD22 Us    A)r   r   r   )__name__
__module____qualname____firstlineno____doc__	__slots__intr   r   r   r	   r   classmethodr(   __static_attributes____classcell__)r   s   @r   r   r      s}    . *I *. ),-
 X&   	38H- 	3E 	3hGZ>[ 	3 	3r!   r   N)r0   typingr   r   r   r   telegram._files.photosizer   telegram._telegramobjectr   telegram._utils.typesr	   telegramr
   r    r!   r   <module>r<      s,   & S ; ; / 3 *43 43r!   