
    N[i	                     8    d dl mZ d dlZd dlmZ  G d d      Zy)    )UnionN)rawc                   8    e Zd Zdddeeef   deeef   defdZy)UnbanChatMemberselfzpyrogram.Clientchat_iduser_idreturnc           	      6  K   | j                  t        j                  j                  j	                  | j                  |       d{   | j                  |       d{   t        j                  j                  d                   d{    y7 M7 77 	w)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   )
until_date)channelparticipantbanned_rightsT)invoker   	functionschannels
EditBannedresolve_peertypesChatBannedRights)r   r   r	   s      [/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/chats/unban_chat_member.pyunban_chat_memberz!UnbanChatMember.unban_chat_member   s     8 kkMM""--"//88"&"3"3G"<<!ii88  9  . 
 	
 	
  9<	
s6   ABBBB/BBBBBN)__name__
__module____qualname__r   intstrboolr        r   r   r      s;    &&sCx& sCx& 
	&r    r   )typingr   pyrogramr   r   r   r    r   <module>r#      s   &   ' 'r    