o
    Zzj/
  ã                   @   sd   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	„ d	eƒZd
S )zLThis module contains an object that represents a Telegram UserProfileAudios.é    )ÚSequence)ÚTYPE_CHECKING)ÚAudio)ÚTelegramObject)ÚJSONDict)ÚBotc                	       sd   e Zd ZdZdZddœdedee dedB ddf‡ fd	d
„Z	e
ddedddd f‡ fdd„ƒZ‡  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                   s8   t ƒ j|d� || _t|ƒ| _| j| jf| _|  ¡  d S )Nr   )ÚsuperÚ__init__r
   Útupler	   Ú	_id_attrsÚ_freeze)Úselfr
   r	   r   ©Ú	__class__© úV/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telegram/_userprofileaudios.pyr   5   s
   
zUserProfileAudios.__init__ÚdataÚbotz
Bot | Nonec                    s2   |   |¡}t | dg ¡|¡|d< tƒ j||d�S )z,See :meth:`telegram.TelegramObject.de_json`.r	   )r   r   )Ú_parse_datar   Úde_listÚgetr   Úde_json)Úclsr   r   r   r   r   r   E   s   
zUserProfileAudios.de_json)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Úintr   r   r   r   Úclassmethodr   Ú__classcell__r   r   r   r   r       s    ûþýûú&r   N)r"   Úcollections.abcr   Útypingr   Útelegram._files.audior   Útelegram._telegramobjectr   Útelegram._utils.typesr   Útelegramr   r   r   r   r   r   Ú<module>   s   