mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add docs for Dispatcher
This commit is contained in:
parent
8ebbfb1388
commit
7245811c3c
197 changed files with 872 additions and 19 deletions
|
|
@ -1,52 +0,0 @@
|
|||
#############
|
||||
sendAnimation
|
||||
#############
|
||||
|
||||
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future.
|
||||
|
||||
Returns: :obj:`Message`
|
||||
|
||||
.. automodule:: aiogram.api.methods.send_animation
|
||||
:members:
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Message = await bot.send_animation(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods import SendAnimation`
|
||||
- :code:`from aiogram.api.methods import SendAnimation`
|
||||
- :code:`from aiogram.api.methods.send_animation import SendAnimation`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Message = await SendAnimation(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Message = await bot(SendAnimation(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
return SendAnimation(...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue