aiogram/docs2/api/methods/stop_poll.rst

51 lines
767 B
ReStructuredText
Raw Normal View History

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