aiogram/docs/api/methods/send_paid_media.rst
Alex Root Junior cf3a6c3d59
Added full support of Bot API 7.8 (#1551)
* Added full support of Bot API 7.8

* Added changelog

* Try to fix tests on Windows

* scope=session?

* Try another way

* Just try to set custom event loop policy manually

* Revert "Just try to set custom event loop policy manually"

This reverts commit 04ee60d878.

* Just try to set custom event loop policy manually
2024-08-09 19:10:39 +03:00

52 lines
939 B
ReStructuredText

#############
sendPaidMedia
#############
Returns: :obj:`Message`
.. automodule:: aiogram.methods.send_paid_media
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: Message = await bot.send_paid_media(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.send_paid_media import SendPaidMedia`
- alias: :code:`from aiogram.methods import SendPaidMedia`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: Message = await bot(SendPaidMedia(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return SendPaidMedia(...)
As shortcut from received object
--------------------------------
- :meth:`aiogram.types.message.Message.answer_paid_media`
- :meth:`aiogram.types.message.Message.reply_paid_media`