2021-01-26 21:20:52 +02:00
|
|
|
###########
|
|
|
|
|
copyMessage
|
|
|
|
|
###########
|
|
|
|
|
|
|
|
|
|
Returns: :obj:`MessageId`
|
|
|
|
|
|
|
|
|
|
.. automodule:: aiogram.methods.copy_message
|
|
|
|
|
:members:
|
|
|
|
|
:member-order: bysource
|
|
|
|
|
:undoc-members: True
|
2023-07-04 00:39:02 +03:00
|
|
|
:exclude-members: model_config,model_fields
|
2021-01-26 21:20:52 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Usage
|
|
|
|
|
=====
|
|
|
|
|
|
|
|
|
|
As bot method
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
.. code-block::
|
|
|
|
|
|
|
|
|
|
result: MessageId = await bot.copy_message(...)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Method as object
|
|
|
|
|
----------------
|
|
|
|
|
|
|
|
|
|
Imports:
|
|
|
|
|
|
|
|
|
|
- :code:`from aiogram.methods.copy_message import CopyMessage`
|
|
|
|
|
- alias: :code:`from aiogram.methods import CopyMessage`
|
|
|
|
|
|
|
|
|
|
With specific bot
|
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
|
|
|
|
result: MessageId = await bot(CopyMessage(...))
|
|
|
|
|
|
|
|
|
|
As reply into Webhook in handler
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
2021-05-11 23:04:32 +03:00
|
|
|
return CopyMessage(...)
|
2022-12-04 03:05:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
As shortcut from received object
|
|
|
|
|
--------------------------------
|
|
|
|
|
|
|
|
|
|
- :meth:`aiogram.types.message.Message.copy_to`
|