Add sphinx with converting part of pages

This commit is contained in:
Alex Root Junior 2020-06-15 02:22:24 +03:00
parent 3aa68a93d1
commit f68960ca87
192 changed files with 6123 additions and 350 deletions

View file

@ -0,0 +1,52 @@
########
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`
.. automodule:: aiogram.api.methods.stop_poll
:members:
Usage
=====
As bot method
-------------
.. code-block::
result: Poll = await bot.stop_poll(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods import StopPoll`
- :code:`from aiogram.api.methods import StopPoll`
- :code:`from aiogram.api.methods.stop_poll import StopPoll`
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(...)