mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add sphinx with converting part of pages
This commit is contained in:
parent
3aa68a93d1
commit
f68960ca87
192 changed files with 6123 additions and 350 deletions
52
docs2/source/api/methods/delete_webhook.rst
Normal file
52
docs2/source/api/methods/delete_webhook.rst
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
#############
|
||||
deleteWebhook
|
||||
#############
|
||||
|
||||
Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success. Requires no parameters.
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.api.methods.delete_webhook
|
||||
:members:
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.delete_webhook(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods import DeleteWebhook`
|
||||
- :code:`from aiogram.api.methods import DeleteWebhook`
|
||||
- :code:`from aiogram.api.methods.delete_webhook import DeleteWebhook`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await DeleteWebhook(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot(DeleteWebhook(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
return DeleteWebhook(...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue