
    dh                    X    d dl mZ d dlmZmZmZ ddlmZ ddlm	Z	  G d de	e
         Zy	)
    )annotations)TYPE_CHECKINGAnyOptional   )ChatIdUnion   )TelegramMethodc                  z     e Zd ZU dZeZdZded<   	 ded<   	 dZded	<   	 e	rdd
	 	 	 	 	 	 	 	 	 d fdZ
 xZS  xZS )UnbanChatMemberaa  
    Use this method to 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. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be **removed** from the chat. If you don't want this, use the parameter *only_if_banned*. Returns :code:`True` on success.

    Source: https://core.telegram.org/bots/api#unbanchatmember
    unbanChatMemberr   chat_idintuser_idNOptional[bool]only_if_banned)r   c               ,    t        |   d|||d| y )N)r   r   r    )super__init__)__pydantic__self__r   r   r   !_UnbanChatMember__pydantic_kwargs	__class__s        [/var/www/netwell/bot/venv/lib/python3.12/site-packages/aiogram/methods/unban_chat_member.pyr   zUnbanChatMember.__init__   s*     G - $	    )
r   r   r   r   r   r   r   r   returnNone)__name__
__module____qualname____doc__bool__returning____api_method____annotations__r   r   r   __classcell__)r   s   @r   r   r   	   s~     M&N JL.%)NN). .2	 !	 		
 +	 "%	 	 		 r   r   N)
__future__r   typingr   r   r   typesr   baser
   r"   r   r   r   r   <module>r+      s%    " / /   &nT* &r   