Ë
    S"“j#  ã                   ó*   — d dl mZ d„ Z G d„ d«      Zy)é   )Útypesc                 ó   ‡ — ˆ fd„}||dœS )zÖ
    Helper method to build properties that return `True` if the user is an
    administrator of a normal chat, or otherwise return `True` if the user
    has a specific permission being an admin of a channel.
    c                 óx   •— | j                   sy| j                  ryt        | j                  j                  ‰«      S )NFT)Úis_adminÚis_chatÚgetattrÚparticipantÚadmin_rights)ÚselfÚ
field_names    €új/var/www/api.ozpay.ru/ozpay/venv/lib/python3.12/site-packages/telethon/tl/custom/participantpermissions.pyÚfgetz_admin_prop.<locals>.fget
   s0   ø€ Ø�}Š}ØØ�<Š<Øä�t×'Ñ'×4Ñ4°jÓAÐAó    )r   Údoc© )r   r   r   s   `  r   Ú_admin_propr      s   ø€ ôBð  Ñ%Ð%r   c                   óŠ  — e Zd ZdZdefd„Zed„ «       Zed„ «       Zed„ «       Z	ed„ «       Z
ed„ «       Zed	„ «       Z edi  ed
d«      ¤ŽZ edi  edd«      ¤ŽZ edi  edd«      ¤ŽZ edi  edd«      ¤ŽZ edi  edd«      ¤ŽZ edi  edd«      ¤ŽZ edi  edd«      ¤ŽZ edi  edd«      ¤ŽZ edi  edd«      ¤ŽZy)ÚParticipantPermissionsa�  
    Participant permissions information.

    The properties in this objects are boolean values indicating whether the
    user has the permission or not.

    Example
        .. code-block:: python

            permissions = ...

            if permissions.is_banned:
                "this user is banned"
            elif permissions.is_admin:
                "this user is an administrator"
    Úchatc                 ó    — || _         || _        y )N)r	   r   )r   r	   r   s      r   Ú__init__zParticipantPermissions.__init__&   s   € Ø&ˆÔØˆ�r   c                 ó†   — | j                   xs4 t        | j                  t        j                  t        j
                  f«      S )z¦
        Whether the user is an administrator of the chat or not. The creator
        also counts as begin an administrator, since they have all permissions.
        )Ú
is_creatorÚ
isinstancer	   r   ÚChannelParticipantAdminÚChatParticipantAdmin©r   s    r   r   zParticipantPermissions.is_admin*   s<   € ð �‰ò ¤*¨T×-=Ñ-=Ü×)Ñ)Ü×&Ñ&ð@
ó #ð 	r   c                 ój   — t        | j                  t        j                  t        j                  f«      S )zE
        Whether the user is the creator of the chat or not.
        )r   r	   r   ÚChannelParticipantCreatorÚChatParticipantCreatorr   s    r   r   z!ParticipantPermissions.is_creator5   s0   € ô
 ˜$×*Ñ*Ü×+Ñ+Ü×(Ñ(ð-
ó ð 	r   c                 óˆ   — t        | j                  t        j                  t        j                  t        j
                  f«      S )z”
        Whether the user is a normal user of the chat (not administrator, but
        not banned either, and has no restrictions applied).
        )r   r	   r   ÚChannelParticipantÚChatParticipantÚChannelParticipantSelfr   s    r   Úhas_default_permissionsz.ParticipantPermissions.has_default_permissions?   s9   € ô ˜$×*Ñ*Ü×$Ñ$Ü×!Ñ!Ü×(Ñ(ð-
ó ð 	r   c                 óJ   — t        | j                  t        j                  «      S )z9
        Whether the user is banned in the chat.
        )r   r	   r   ÚChannelParticipantBannedr   s    r   Ú	is_bannedz ParticipantPermissions.is_bannedK   s   € ô
 ˜$×*Ñ*¬E×,JÑ,JÓKÐKr   c                 óJ   — t        | j                  t        j                  «      S )z1
        Whether the user left the chat.
        )r   r	   r   ÚChannelParticipantLeftr   s    r   Úhas_leftzParticipantPermissions.has_leftR   s   € ô
 ˜$×*Ñ*¬E×,HÑ,HÓIÐIr   c                 óŒ   — | j                   sy| j                  r| j                  S | j                  j                  j
                  S )z{
        Whether the administrator can add new administrators with the same or
        less permissions than them.
        F)r   r   r   r	   r
   Ú
add_adminsr   s    r   r-   z!ParticipantPermissions.add_adminsY   s7   € ð �}Š}Øà�<Š<Ø—?‘?Ð"à×Ñ×,Ñ,×7Ñ7Ð7r   Ú	ban_userszC
        Whether the administrator can ban other users or not.
    Úpin_messagesz@
        Whether the administrator can pin messages or not.
    Úinvite_userszF
        Whether the administrator can add new users to the chat.
    Údelete_messageszT
        Whether the administrator can delete messages from other participants.
    Úedit_messagesz:
        Whether the administrator can edit messages.
    Úpost_messageszS
        Whether the administrator can post messages in the broadcast channel.
    Úchange_infozx
        Whether the administrator can change the information about the chat,
        such as title or description.
    Ú	anonymouszT
        Whether the administrator will remain anonymous when sending messages.
    Úmanage_callzB
        Whether the user will be able to manage group calls.
    Nr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úboolr   Úpropertyr   r   r%   r(   r+   r-   r   r.   r/   r0   r1   r2   r3   r4   r5   r6   r   r   r   r   r      s¨  „ ñð ¨$ó ð ñó ðð ñó ðð ñ	ó ð	ð ñLó ðLð ñJó ðJð ñ8ó ð8ñ ñ 
™; {ð 5ó 	ñ 
€Iñ ñ 
™k¨.ð ;ó 	ñ 
€Lñ ñ 
™k¨.ð ;ó 	ñ 
€Lñ ñ 
¡Ð->ð Aó "	ñ 
€Oñ ñ 
™{¨?ð =ó  	ñ 
€Mñ ñ 
™{¨?ð =ó  	ñ 
€Mñ ñ 
™[¨ð 9ó 	ñ 
€Kñ
 ñ 
™; {ð 5ó 	ñ 
€Iñ ñ 
™[¨ð 9ó 	ñ 
�Kr   r   N)Ú r   r   r   r   r   r   ú<module>r>      s   ðÝ ò&÷"u
ò u
r   