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 @@
############
sendDocument
############
Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
Returns: :obj:`Message`
.. automodule:: aiogram.api.methods.send_document
:members:
Usage
=====
As bot method
-------------
.. code-block::
result: Message = await bot.send_document(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods import SendDocument`
- :code:`from aiogram.api.methods import SendDocument`
- :code:`from aiogram.api.methods.send_document import SendDocument`
In handlers with current bot
----------------------------
.. code-block::
result: Message = await SendDocument(...)
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block::
result: Message = await bot(SendDocument(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block::
return SendDocument(...)