peyk.platforms.telegram.methods.forward_message

async peyk.platforms.telegram.methods.forward_message(self, chat_id: int | str, from_chat_id: int | str, message_id: int, *, message_thread_id: int | None = None, disable_notification: bool | None = None, protect_content: bool | None = None) Message[source]

Use this method to forward messages of any kind. Service messages and messages with protected content can’t be forwarded. On success, the sent Message is returned.

Parameters:
  • chat_id – Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username

  • from_chat_id – Unique identifier for the chat where the original message was sent (or username of the target bot, supergroup or channel in the format @username)

  • message_id – Message identifier in the chat specified in from_chat_id

  • message_thread_id – Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only

  • disable_notification – Sends the message silently. Users will receive a notification with no sound.

  • protect_content – Protects the contents of the forwarded message from forwarding and saving

Returns:

Result returned by Telegram on successful execution.

Return type:

Message