forward_message
Use this method to forward messages of any kind.
Parameters
chat_id
(int
orstr
): Unique identifier for the target chat or username of the target channel (in the format @channelusername)from_chat_id
(int
orstr
): Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)message_id
(int
): Message identifier in the chat specified in from_chat_idmessage_thread_id
(int
) (optional
): Unique identifier for the target message thread (topic) of the forum; for forum supergroups onlyvideo_start_timestamp
(int
) (optional
): New start timestamp for the forwarded video in the messagedisable_notification
(bool
) (optional
): Sends the message silently. Users will receive a notification with no soundprotect_content
(bool
) (optional
): Protects the contents of the forwarded message from forwarding and saving
Returns
Message
Examples
- Required Parameters
await bot.forward_message(
chat_id=your_chat_id_here,
from_chat_id=your_from_chat_id_here,
message_id=your_message_id_here
)
- All Parameters
await bot.forward_message(
chat_id=your_chat_id_here,
from_chat_id=your_from_chat_id_here,
message_id=your_message_id_here,
message_thread_id=your_message_thread_id_here,
video_start_timestamp=your_video_start_timestamp_here,
disable_notification=your_disable_notification_here,
protect_content=your_protect_content_here
)