aiogram/docs/api/methods/delete_my_commands.rst
Alex Root Junior 02f1d3555e Regenerate API
2021-07-05 03:17:22 +03:00

51 lines
859 B
ReStructuredText

################
deleteMyCommands
################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.delete_my_commands
:members:
:member-order: bysource
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.delete_my_commands(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.delete_my_commands import DeleteMyCommands`
- alias: :code:`from aiogram.methods import DeleteMyCommands`
In handlers with current bot
----------------------------
.. code-block:: python
result: bool = await DeleteMyCommands(...)
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(DeleteMyCommands(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return DeleteMyCommands(...)