U
    ;g
                     @   sx   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 deZdS )	    )BytesIO)	IntLongInt128Int256BoolBytesStringDoubleVector)TLObject)raw)ListOptionalAnyc                   @   sl   e Zd ZU dZdddgZee ed< dZdZ	deed	 d
dddZ
eeed dddZedddZd
S )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.SetBotCommandszraw.base.BotCommandScopezraw.base.BotCommandN)r   r   r   returnc                C   s   || _ || _|| _d S )Nr   r   r   )selfr   r   r    r   l/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/raw/functions/bots/set_bot_commands.py__init__;   s    zSetBotCommands.__init__)bargsr   c                 G   s,   t | }t| }t | }t|||dS )Nr   )r   readr	   r   )r   r   r   r   r   r   r   r   r   @   s    


zSetBotCommands.read)r   c                 G   sP   t  }|t| jd || j  |t| j |t| j |	 S )NF)
r   writer   IDr   r	   r   r   r   getvalue)r   r   r   r   r   r   r   L   s    zSetBotCommands.write)__name__
__module____qualname____doc__r   r   str__annotations__r    ZQUALNAMEr   staticmethodr   r   r   bytesr   r   r   r   r   r   !   s   
r   N)ior   Zpyrogram.raw.core.primitivesr   r   r   r   r   r   r	   r
   r   Zpyrogram.raw.corer   Zpyrogramr   typingr   r   r   r   r   r   r   r   <module>   s
   ,	