o
    -˜Žj¢	  ã                   @   s2   d dl mZ d dlZd dlmZ G dd„ dƒZdS )é    )ÚUnionN)Úrawc                   @   s6   e Zd Zdddeeef deeef defdd„ZdS )	ÚUnbanChatMemberÚselfzpyrogram.ClientÚchat_idÚuser_idÚreturnc                 Ã   sH   �|   tjjj|  |¡I dH |  |¡I dH tjjdd�d�¡I dH  dS )aÉ  Unban a previously banned user in a supergroup or channel.
        The user will **not** return to the group or channel automatically, but will be able to join via link, etc.
        You must be an administrator for this to work.

        .. include:: /_includes/usable-by/users-bots.rst

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.
                You can also use chat public link in form of *t.me/<username>* (str).

            user_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target user.
                For a contact that exists in your Telegram address book you can use his phone number (str).

        Returns:
            ``bool``: True on success.

        Example:
            .. code-block:: python

                # Unban chat member right now
                await app.unban_chat_member(chat_id, user_id)
        Nr   )Ú
until_date)ÚchannelÚparticipantÚbanned_rightsT)Úinvoker   Ú	functionsÚchannelsÚ
EditBannedÚresolve_peerÚtypesÚChatBannedRights)r   r   r   © r   úe/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/chats/unban_chat_member.pyÚunban_chat_member   s   €ÿý
ÿ
z!UnbanChatMember.unban_chat_memberN)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrÚboolr   r   r   r   r   r      s    ÿ
þ
ýür   )Útypingr   Úpyrogramr   r   r   r   r   r   Ú<module>   s   