Raw.messages.ForwardMessages

Raw.messages.ForwardMessages

Forwards messages by their ids.

messages.forwardMessages#6d74da08 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true allow_paid_floodskip:flags.19?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut video_timestamp:flags.20?int = Updates;
export namespace Raw {
  export namespace messages {
    export class ForwardMessages {
      constructor(params: {
        silent?: boolean;
        background?: boolean;
        withMyScore?: boolean;
        dropAuthor?: boolean;
        dropMediaCaptions?: boolean;
        noforwards?: boolean;
        allowPaidFloodskip?: boolean;
        fromPeer: Raw.TypeInputPeer;
        id: Array<number>;
        randomId: Array<bigint>;
        toPeer: Raw.TypeInputPeer;
        topMsgId?: number;
        scheduleDate?: number;
        sendAs?: Raw.TypeInputPeer;
        quickReplyShortcut?: Raw.TypeInputQuickReplyShortcut;
        videoTimestamp?: number;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 198
Constructor ID: 0x6d74da08

Property

  • silent : boolean or undefined

    Whether to send messages silently (no notification will be triggered on the destination clients)

  • background : boolean or undefined

    Whether to send the message in background

  • withMyScore : boolean or undefined

    When forwarding games, whether to include your score in the game

  • dropAuthor : boolean or undefined

    Whether to forward messages without quoting the original author

  • dropMediaCaptions : boolean or undefined

    Whether to strip captions from media

  • noforwards : boolean or undefined

    Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled

  • allowPaidFloodskip : boolean or undefined

    Bots only: if set, allows sending up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 telegram stars per message. the relevant stars will be withdrawn from the bot’s balance.

  • fromPeer : Raw.TypeInputPeer

    Source of messages

  • id : Array of number

    Ids of messages

  • randomId : Array of bigint

    Random id to prevent resending of messages

  • toPeer : Raw.TypeInputPeer

    Destination peer

  • topMsgId : number or undefined

    Destination forum topic

  • scheduleDate : number or undefined

    Scheduled message date for scheduled messages

  • sendAs : Raw.TypeInputPeer or undefined

    Forward the messages as the specified peer

  • quickReplyShortcut : Raw.TypeInputQuickReplyShortcut or undefined

    Add the messages to the specified quick reply shortcut, instead.

  • videoTimestamp : number or undefined

Results

Raw.TypeUpdates

Bots can use