forwardMessages

Forward multiple messages.

PARAMETERS
from: ID

The identifier of the chat to forward the messages from.

to: ID

The identifier of the chat to forward the messages to.

messageIds: number[]

The identifiers of the messages to forward.

dropSenderName?: boolean

Whether to not include the original sender of the message that is going to be forwarded.

dropCaption?: boolean

Whether to not include the original caption of the message that is going to be forwarded.

disableNotification?: boolean

Whether to send the message in a silent way without making a sound on the recipients’ clients.

protectContent?: boolean

Whether to protect the contents of the message from copying and forwarding.

replyQuote?: ReplyQuote

A specific part of the replying message’s text to quote.

messageThreadId?: number

The identifier of a thread to send the message to.

sendAs?: ID

The identifier of a chat to send the message on behalf of. User-only.

businessConnectionId?: string
RESULT

The forwarded messages.

SYNTAX
// Required parameters only.
await client.forwardMessages(from, to, messageIds);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.forwardMessages(from, to, messageIds, {
    dropSenderName,
    dropCaption,
    disableNotification,
    protectContent,
    replyQuote,
    messageThreadId,
    sendAs,
    businessConnectionId,
});