U
    ;g	                     @   s2   d dl mZ d dlZd dlmZ G dd dZdS )    )UnionN)rawc                   @   s0   e Zd Zdeeef eeef edddZdS )UnbanChatMemberzpyrogram.Client)selfchat_iduser_idreturnc                    sF   |  tjjj| |I dH | |I dH tjjdddI dH  dS )as  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.

            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   )Z
until_date)ZchannelZparticipantZbanned_rightsT)Zinvoker   Z	functionsZchannelsZ
EditBannedZresolve_peertypesZChatBannedRights)r   r   r    r
   h/opt/bot/vods_filmes/script/venv/lib/python3.8/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   Zpyrogramr   r   r
   r
   r
   r   <module>   s   