
    F˝ic	                    X    d dl mZ d dlmZmZ ddlmZmZ ddlm	Z	  G d de	e
         Zy	)
    )annotations)TYPE_CHECKINGAny   )ChatIdUnionDateTimeUnion   )TelegramMethodc                       e Zd ZU dZeZdZded<   	 ded<   	 dZded	<   	 dZ	d
ed<   	 e
rddd	 	 	 	 	 	 	 	 	 	 	 d fdZ xZS  xZS )BanChatMembera  
    Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless `unbanned <https://core.telegram.org/bots/api#unbanchatmember>`_ first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns :code:`True` on success.

    Source: https://core.telegram.org/bots/api#banchatmember
    banChatMemberr   chat_idintuser_idNDateTimeUnion | None
until_datebool | Nonerevoke_messages)r   r   c               .    t        |   d||||d| y )N)r   r   r   r    )super__init__)__pydantic__self__r   r   r   r   _BanChatMember__pydantic_kwargs	__class__s         X/home/leshdev/mybot/venv/lib/python3.12/site-packages/aiogram/methods/ban_chat_member.pyr   zBanChatMember.__init__    s-     G % /	
 $    )r   r   r   r   r   r   r   r   r   r   returnNone)__name__
__module____qualname____doc__bool__returning____api_method____annotations__r   r   r   r   __classcell__)r   s   @r   r   r   	   s     M$N JL.'+J$+ f#'O[' H 04+/	 !	 		
 -	 )	 "%	 	 		 r   r   N)
__future__r   typingr   r   typesr   r   baser
   r$   r   r   r   r   <module>r-      s"    " % .  *N4( *r   