2020-06-15 02:22:24 +03:00
|
|
|
########
|
|
|
|
|
stopPoll
|
|
|
|
|
########
|
|
|
|
|
|
|
|
|
|
Use this method to stop a poll which was sent by the bot. On success, the stopped Poll with the final results is returned.
|
|
|
|
|
|
|
|
|
|
Returns: :obj:`Poll`
|
|
|
|
|
|
2020-11-18 02:05:52 +02:00
|
|
|
.. automodule:: aiogram.methods.stop_poll
|
2020-06-15 02:22:24 +03:00
|
|
|
:members:
|
2020-06-27 19:46:01 +03:00
|
|
|
:member-order: bysource
|
|
|
|
|
:special-members: __init__
|
|
|
|
|
:undoc-members: True
|
2020-06-15 02:22:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Usage
|
|
|
|
|
=====
|
|
|
|
|
|
|
|
|
|
As bot method
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
.. code-block::
|
|
|
|
|
|
|
|
|
|
result: Poll = await bot.stop_poll(...)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Method as object
|
|
|
|
|
----------------
|
|
|
|
|
|
|
|
|
|
Imports:
|
|
|
|
|
|
|
|
|
|
- :code:`from aiogram.methods import StopPoll`
|
2020-11-18 02:05:52 +02:00
|
|
|
- :code:`from aiogram.methods import StopPoll`
|
|
|
|
|
- :code:`from aiogram.methods.stop_poll import StopPoll`
|
2020-06-15 02:22:24 +03:00
|
|
|
|
|
|
|
|
In handlers with current bot
|
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
|
|
.. code-block::
|
|
|
|
|
|
|
|
|
|
result: Poll = await StopPoll(...)
|
|
|
|
|
|
|
|
|
|
With specific bot
|
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
.. code-block::
|
|
|
|
|
|
|
|
|
|
result: Poll = await bot(StopPoll(...))
|
|
|
|
|
|
|
|
|
|
As reply into Webhook in handler
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
.. code-block::
|
|
|
|
|
|
|
|
|
|
return StopPoll(...)
|