class pyrogram.raw.functions.messages.ForwardMessages#

Forwards messages by their IDs.

  • Layer: 158

  • ID: C661BBC4

  • from_peer (InputPeer) – Source of messages.

  • id (List of int 32-bit) – IDs of messages.

  • random_id (List of int 64-bit) – Random ID to prevent resending of messages.

  • to_peer (InputPeer) – Destination peer.

  • silent (bool, optional) – Whether to send messages silently (no notification will be triggered on the destination clients).

  • background (bool, optional) – Whether to send the message in background.

  • with_my_score (bool, optional) – When forwarding games, whether to include your score in the game.

  • drop_author (bool, optional) – Whether to forward messages without quoting the original author.

  • drop_media_captions (bool, optional) – Whether to strip captions from media.

  • noforwards (bool, optional) – Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled.

  • top_msg_id (int 32-bit, optional) – Destination forum topic.

  • schedule_date (int 32-bit, optional) – Scheduled message date for scheduled messages.

  • send_as (InputPeer, optional) – Forward the messages as the specified peer.