forwardMessages
Forward multiple messages.
Parameters
The identifier of the chat to forward the messages from.
The identifier of the chat to forward the messages to.
The identifiers of the messages to forward.
Whether to not include the original sender of the message that is going to be forwarded.
Whether to not include the original caption of the message that is going to be forwarded.
Whether to send the message in a silent way without making a sound on the recipients’ clients.
Whether to protect the contents of the message from copying and forwarding.
Information on what the message is replying to.
The identifier of a thread to send the message to.
The identifier of a chat to send the message on behalf of. User-only.
The identifier of a message effect to be attached to the message.
If specified, the message will be scheduled to be sent at that date. User-only.
The identifier of a business connection ID to perform the action on. Bot-only.
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,
replyTo,
messageThreadId,
sendAs,
effectId,
sendAt,
businessConnectionId,
paidBroadcast,
});