o
    -˜Žj  ã                   @   s2   d dl mZ d dlZd dlmZ G dd„ dƒZdS )é    )ÚUnionN)Úrawc                	   @   s6   e Zd Z	d	dddedeeef dejjfdd„Z	dS )
Ú
GetBotInfoNÚselfzpyrogram.ClientÚ	lang_codeÚbotÚreturnc                 Ã   sF   �d}|r|   |¡I dH }|  tjjj||d�¡I dH }tjj 	|¡S )a÷  Get the bot info in given language.

        .. include:: /_includes/usable-by/users-bots.rst

        Note:
            For normal bot you can only use this method to self.
            For userbot you can only use this method if you are the owner of target bot.

        Parameters:
            lang_code ``str``:
                A two-letter ISO 639-1 language code.
            bot (``int`` | ``str``, *optional*):
                Unique identifier (int) or username (str) of the target bot.
        N)r   r   )
Úresolve_peerÚinvoker   Ú	functionsÚbotsr   ÚpyrogramÚtypesÚBotInfoÚ_parse)r   r   r   ÚpeerÚr© r   ú_/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/bots/get_bot_info.pyÚget_bot_info   s   €zGetBotInfo.get_bot_info)N)
Ú__name__Ú
__module__Ú__qualname__Ústrr   Úintr   r   r   r   r   r   r   r   r      s    ýÿþ
ýür   )Útypingr   r   r   r   r   r   r   r   Ú<module>   s   