aiogram/docs2/api/methods/get_webhook_info.rst

46 lines
743 B
ReStructuredText
Raw Normal View History

##############
getWebhookInfo
##############
Returns: :obj:`WebhookInfo`
.. automodule:: aiogram.methods.get_webhook_info
:members:
2020-06-27 19:46:01 +03:00
:member-order: bysource
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: WebhookInfo = await bot.get_webhook_info(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.get_webhook_info import GetWebhookInfo`
2021-01-24 20:54:38 +02:00
- alias: :code:`from aiogram.methods import GetWebhookInfo`
In handlers with current bot
----------------------------
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: WebhookInfo = await GetWebhookInfo(...)
With specific bot
~~~~~~~~~~~~~~~~~
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: WebhookInfo = await bot(GetWebhookInfo(...))