mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 02:52:12 +00:00
46 lines
796 B
ReStructuredText
46 lines
796 B
ReStructuredText
|
|
###############
|
||
|
|
forwardMessages
|
||
|
|
###############
|
||
|
|
|
||
|
|
Returns: :obj:`List[MessageId]`
|
||
|
|
|
||
|
|
.. automodule:: aiogram.methods.forward_messages
|
||
|
|
:members:
|
||
|
|
:member-order: bysource
|
||
|
|
:undoc-members: True
|
||
|
|
:exclude-members: model_config,model_fields
|
||
|
|
|
||
|
|
|
||
|
|
Usage
|
||
|
|
=====
|
||
|
|
|
||
|
|
As bot method
|
||
|
|
-------------
|
||
|
|
|
||
|
|
.. code-block::
|
||
|
|
|
||
|
|
result: List[MessageId] = await bot.forward_messages(...)
|
||
|
|
|
||
|
|
|
||
|
|
Method as object
|
||
|
|
----------------
|
||
|
|
|
||
|
|
Imports:
|
||
|
|
|
||
|
|
- :code:`from aiogram.methods.forward_messages import ForwardMessages`
|
||
|
|
- alias: :code:`from aiogram.methods import ForwardMessages`
|
||
|
|
|
||
|
|
With specific bot
|
||
|
|
~~~~~~~~~~~~~~~~~
|
||
|
|
|
||
|
|
.. code-block:: python
|
||
|
|
|
||
|
|
result: List[MessageId] = await bot(ForwardMessages(...))
|
||
|
|
|
||
|
|
As reply into Webhook in handler
|
||
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
|
|
||
|
|
.. code-block:: python
|
||
|
|
|
||
|
|
return ForwardMessages(...)
|