đ§ 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 savingdirect_messages_topic_id
(int
) (optional
): Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chatsuggested_post_parameters
(SuggestedPostParameters ) (optional
): A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
đ˛ 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,
direct_messages_topic_id=your_direct_messages_topic_id_here,
suggested_post_parameters=your_suggested_post_parameters_here
)