a
    y{JhA  ã                   @  st   d dl mZ d dlmZmZmZ ddlmZmZm	Z	m
Z
mZmZ ddlmZ G dd„ deeeee
ee	ef  ƒZd	S )
é    )Úannotations)ÚTYPE_CHECKINGÚAnyÚUnioné   )ÚChatMemberAdministratorÚChatMemberBannedÚChatMemberLeftÚChatMemberMemberÚChatMemberOwnerÚChatMemberRestrictedé   )ÚTelegramMethodc                      sZ   e Zd ZU dZeeeeee	e
f ZdZded< ded< erRddddd	œ‡ fd
d„Z‡  ZS )ÚGetChatMembera1  
    Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a :class:`aiogram.types.chat_member.ChatMember` object on success.

    Source: https://core.telegram.org/bots/api#getchatmember
    ZgetChatMemberzUnion[int, str]Úchat_idÚintÚuser_idr   ÚNone)r   r   Ú_GetChatMember__pydantic_kwargsÚreturnc                  s   t ƒ jf ||dœ|¤Ž d S )N)r   r   )ÚsuperÚ__init__)Z__pydantic__self__r   r   r   ©Ú	__class__© úQ/var/www/shaz/venv/lib/python3.9/site-packages/aiogram/methods/get_chat_member.pyr   5   s    zGetChatMember.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r
   r   r	   r   Z__returning__Z__api_method__Ú__annotations__r   r   Ú__classcell__r   r   r   r   r      s   
ûÿr   N)Ú
__future__r   Útypingr   r   r   Útypesr   r   r	   r
   r   r   Úbaser   r   r   r   r   r   Ú<module>   s     
ûÿÿÿ