
    N[i
                     ~    d dl mZ d dlmZmZmZmZmZmZm	Z	m
Z
mZ d dlmZ d dlmZ d dlmZmZmZ  G d de      Zy)	    )BytesIO)	IntLongInt128Int256BoolBytesStringDoubleVector)TLObject)raw)ListOptionalAnyc                   z    e Zd ZU dZg dZee   ed<   dZdZ	ddded	ed
   ddfdZ
edededd fd       ZdefdZy)SetBotCommandsat  Telegram API function.

    Details:
        - Layer: ``158``
        - ID: ``517165A``

    Parameters:
        scope (:obj:`BotCommandScope <pyrogram.raw.base.BotCommandScope>`):
            N/A

        lang_code (``str``):
            N/A

        commands (List of :obj:`BotCommand <pyrogram.raw.base.BotCommand>`):
            N/A

    Returns:
        ``bool``
    scope	lang_codecommands	__slots__iZzfunctions.bots.SetBotCommandsr   zraw.base.BotCommandScoper   r   zraw.base.BotCommandreturnNc                .    || _         || _        || _        y )Nr   )selfr   r   r   s       _/var/www/files/kim/lib/python3.12/site-packages/pyrogram/raw/functions/bots/set_bot_commands.py__init__zSetBotCommands.__init__;   s    
"     bargsc                     t        j                  |       }t        j                  |       }t        j                  |       }t        |||      S )Nr   )r   readr
   r   )r   r    r   r   r   s        r   r"   zSetBotCommands.read@   s<     a KKN	==#EYRRr   c                 b   t               }|j                  t        | j                  d             |j                  | j                  j                                |j                  t        | j                               |j                  t        | j                               |j                         S )NF)
r   writer   IDr   r
   r   r   r   getvalue)r   r    r   s      r   r$   zSetBotCommands.writeL   sq    I	DGGU#$ 	


  "#	t~~&'	t}}%&zz|r   )__name__
__module____qualname____doc__r   r   str__annotations__r%   QUALNAMEr   staticmethodr   r   r"   bytesr$    r   r   r   r   !   s    ( >ItCy=	B.H!!; ! !W[\qWr !w{ !
 	S 	S 	S(8 	S 	Se r   r   N)ior   pyrogram.raw.core.primitivesr   r   r   r   r   r	   r
   r   r   pyrogram.raw.corer   pyrogramr   typingr   r   r   r   r0   r   r   <module>r6      s+   &  g g g &  & &7X 7r   