
    5i/
                     j    d 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
 erddlmZ  G d d	e      Zy
)zLThis module contains an object that represents a Telegram UserProfileAudios.    )Sequence)TYPE_CHECKING)Audio)TelegramObject)JSONDict)Botc            	       n     e Zd ZdZdZdddedee   dedz  ddf fd	Z	e
dd
edddd f fd       Z xZS )UserProfileAudiosaw  
    This object represents the audios displayed on a user's profile.

    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:`audios` are equal.

    .. versionadded:: 22.7

    Args:
        total_count (:obj:`int`): Total number of profile audios for the target user.
        audios (Sequence[:class:`telegram.Audio`]): Requested profile audios.

    Attributes:
        total_count (:obj:`int`): Total number of profile audios for the target user.
        audios (tuple[:class:`telegram.Audio`]): Requested profile audios.

    )audiostotal_countN
api_kwargsr   r   r   returnc                    t         |   |       || _        t        |      | _        | j                  | j                  f| _        | j                          y )Nr   )super__init__r   tupler   	_id_attrs_freeze)selfr   r   r   	__class__s       Y/var/www/app/trading-bot/venv/lib/python3.12/site-packages/telegram/_userprofileaudios.pyr   zUserProfileAudios.__init__5   sG     	J/ +).v**DKK8    databotz
Bot | Nonec                     | j                  |      }t        j                  |j                  dg       |      |d<   t        |   ||      S )z,See :meth:`telegram.TelegramObject.de_json`.r   )r   r   )_parse_datar   de_listgetr   de_json)clsr   r   r   s      r   r    zUserProfileAudios.de_jsonE   sE     t$txx"'=sCXwDc22r   )N)__name__
__module____qualname____doc__	__slots__intr   r   r   r   classmethodr    __classcell__)r   s   @r   r
   r
       sq    $ *I '+ 
 tO 
  38 3, 3BU 3 3r   r
   N)r%   collections.abcr   typingr   telegram._files.audior   telegram._telegramobjectr   telegram._utils.typesr   telegramr   r
    r   r   <module>r1      s,   & S $   ' 3 *,3 ,3r   