
    G˝i^
                    \    d dl mZ d dlmZmZ ddlmZmZmZ ddl	m
Z
  G d de
e         Zy	)
    )annotations)TYPE_CHECKINGAny   )ChatIdUnionChatPermissionsDateTimeUnion   )TelegramMethodc                       e Zd ZU dZeZdZded<   	 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 )RestrictChatMemberaa  
    Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights. Pass :code:`True` for all permissions to lift restrictions from a user. Returns :code:`True` on success.

    Source: https://core.telegram.org/bots/api#restrictchatmember
    restrictChatMemberr   chat_idintuser_idr   permissionsNbool | None use_independent_chat_permissionsDateTimeUnion | None
until_date)r   r   c          	     0    t        |   d|||||d| y )N)r   r   r   r   r    )super__init__)__pydantic__self__r   r   r   r   r   $_RestrictChatMember__pydantic_kwargs	__class__s          ]/home/leshdev/mybot/venv/lib/python3.12/site-packages/aiogram/methods/restrict_chat_member.pyr   zRestrictChatMember.__init__"   s0     G '1Q% $    )r   r   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 AL.  ;48$k8 ^'+J$+ R =A/3	 !	 		
 )	 /:	 -	 "%	 	 		 r   r   N)
__future__r   typingr   r   typesr   r   r	   baser   r&   r   r   r   r   <module>r/      s%    " % ? ?  .- .r   