mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
52 lines
No EOL
991 B
ReStructuredText
52 lines
No EOL
991 B
ReStructuredText
#############
|
|
sendVideoNote
|
|
#############
|
|
|
|
As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent Message is returned.
|
|
|
|
Returns: :obj:`Message`
|
|
|
|
.. automodule:: aiogram.api.methods.send_video_note
|
|
:members:
|
|
|
|
|
|
Usage
|
|
=====
|
|
|
|
As bot method
|
|
-------------
|
|
|
|
.. code-block::
|
|
|
|
result: Message = await bot.send_video_note(...)
|
|
|
|
|
|
Method as object
|
|
----------------
|
|
|
|
Imports:
|
|
|
|
- :code:`from aiogram.methods import SendVideoNote`
|
|
- :code:`from aiogram.api.methods import SendVideoNote`
|
|
- :code:`from aiogram.api.methods.send_video_note import SendVideoNote`
|
|
|
|
In handlers with current bot
|
|
----------------------------
|
|
|
|
.. code-block::
|
|
|
|
result: Message = await SendVideoNote(...)
|
|
|
|
With specific bot
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block::
|
|
|
|
result: Message = await bot(SendVideoNote(...))
|
|
|
|
As reply into Webhook in handler
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block::
|
|
|
|
return SendVideoNote(...) |