Ë
    :É„já
  ã                   óD   — d dl mZ d dlZd dlmZ d dlmZ  G d„ d«      Zy)é    )ÚListN)Úraw)Útypesc                   óR   — e Zd Z ej                  «       dfddded   ddded	ef
d
„Zy)ÚSetBotCommandsÚ Úselfzpyrogram.ClientÚcommandsztypes.BotCommandÚscopeztypes.BotCommandScopeÚlanguage_codeÚreturnc           	   ƒ   ó  K  — | j                  t        j                  j                  j	                  |D �cg c]  }|j                  «       ‘Œ c}|j                  | «      ƒ d{  –—† |¬«      «      ƒ d{  –—† S c c}w 7 Œ7 Œ­w)aÿ  Set the list of the bot's commands.
        The commands passed will overwrite any command set previously.
        This method can be used by the own bot only.

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

        Parameters:
            commands (List of :obj:`~pyrogram.types.BotCommand`):
                A list of bot commands.
                At most 100 commands can be specified.

            scope (:obj:`~pyrogram.types.BotCommandScope`, *optional*):
                An object describing the scope of users for which the commands are relevant.
                Defaults to :obj:`~pyrogram.types.BotCommandScopeDefault`.

            language_code (``str``, *optional*):
                A two-letter ISO 639-1 language code.
                If empty, commands will be applied to all users from the given scope, for whose language there are no
                dedicated commands.

        Returns:
            ``bool``: On success, True is returned.

        Example:
            .. code-block:: python

                from pyrogram.types import BotCommand

                # Set new commands
                await app.set_bot_commands([
                    BotCommand("start", "Start the bot"),
                    BotCommand("settings", "Bot settings")])
        N)r
   r   Ú	lang_code)Úinvoker   Ú	functionsÚbotsr   Úwrite)r	   r
   r   r   Úcs        ú]/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/bots/set_bot_commands.pyÚset_bot_commandszSetBotCommands.set_bot_commands   sn   è ø€ ðP —[‘[Ü�M‰M×Ñ×-Ñ-Ø-5Ö6¨˜!Ÿ'™'�)Ò6Ø!ŸK™K¨Ó-×-Ø'ð .ó ó
÷ 
ð 	
ùâ6Ø-øð
ús.   ‚3BµA9ÁBÁ"A>Á#BÁ4B Á5
BÂ BN)	Ú__name__Ú
__module__Ú__qualname__r   ÚBotCommandScopeDefaultr   ÚstrÚboolr   © ó    r   r   r      sO   „ ð *F¨×)EÑ)EÓ)GØñ	.
Øð.
àÐ)Ñ*ð.
ð 'ð.
ð ð	.
ð
 
ô.
r   r   )Útypingr   Úpyrogramr   r   r   r   r   r   ú<module>r!      s   ðõ( ã Ý Ý ÷/
ò /
r   