mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add docs for Dispatcher
This commit is contained in:
parent
8ebbfb1388
commit
7245811c3c
197 changed files with 872 additions and 19 deletions
55
docs2/api/methods/delete_webhook.rst
Normal file
55
docs2/api/methods/delete_webhook.rst
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
#############
|
||||
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:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
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