Message.forward()

Message.forward()

Bound method forward of Message.

Use as a shortcut for:

await client.forward_messages(
    chat_id=chat_id,
    from_chat_id=message.chat.id,
    message_ids=message.id
)

Example

await message.forward(chat_id)
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”. For a contact that exists in your Telegram address book you can use his phone number (str). You can also use chat public link in form of t.me/<username> (str).

  • message_thread_id (int, optional) – Unique identifier of a message thread to which the message belongs; for supergroups only

  • disable_notification (bool, optional) – Sends the message silently. Users will receive a notification with no sound.

  • schedule_date (datetime, optional) – Date when the message will be automatically sent.

  • protect_content (bool, optional) – Protects the contents of the sent message from forwarding and saving.

  • allow_paid_broadcast (bool, optional) – Pass True to allow the message to ignore regular broadcast limits for a small fee; for bots

  • drop_author (bool, optional) – Forwards messages without quoting the original author

Returns:

On success, the forwarded Message is returned.

Raises:

RPCError – In case of a Telegram RPC error.