o
    -˜Žjb  ã                   @   s2   d dl mZ d dlZd dlmZ G dd„ dƒZdS )é    )ÚUnionN)Úrawc                   @   sD   e Zd Z				ddddedeeef dededed	efd
d„ZdS )Ú
SetBotInfoNÚselfzpyrogram.ClientÚ	lang_codeÚbotÚnameÚaboutÚdescriptionÚreturnc              	   Ã   sF   �d}|r|   |¡I dH }|  tjjj|||||d�¡I dH }t|ƒ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.

            name (``str``, *optional*):
                The bot name.
            
            about (``str``, *optional*):
                The bot bio.

            description (``str``, *optional*):
                Description of the bot;
        N)r   r   r   r	   r
   )Úresolve_peerÚinvoker   Ú	functionsÚbotsr   Úbool)r   r   r   r   r	   r
   ÚpeerÚr© r   ú_/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/bots/set_bot_info.pyÚset_bot_info   s   €$zSetBotInfo.set_bot_info)NNNN)Ú__name__Ú
__module__Ú__qualname__Ústrr   Úintr   r   r   r   r   r   r      s(    úÿþ
ýüûúùr   )Útypingr   Úpyrogramr   r   r   r   r   r   Ú<module>   s   