Raw.messages.ForwardMessages
Forwards messages by their ids.
messages.forwardMessages#d5039208 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 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 = Updates;
export namespace Raw {
export namespace messages {
export class ForwardMessages {
constructor(params: {
silent?: boolean;
background?: boolean;
withMyScore?: boolean;
dropAuthor?: boolean;
dropMediaCaptions?: boolean;
noforwards?: boolean;
fromPeer: Raw.TypeInputPeer;
id: Array<number>;
randomId: Array<bigint>;
toPeer: Raw.TypeInputPeer;
topMsgId?: number;
scheduleDate?: number;
sendAs?: Raw.TypeInputPeer;
quickReplyShortcut?: Raw.TypeInputQuickReplyShortcut;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0xd5039208
Property
silent
: boolean or undefinedWhether to send messages silently (no notification will be triggered on the destination clients)
background
: boolean or undefinedWhether to send the message in background
withMyScore
: boolean or undefinedWhen forwarding games, whether to include your score in the game
dropAuthor
: boolean or undefinedWhether to forward messages without quoting the original author
dropMediaCaptions
: boolean or undefinedWhether to strip captions from media
noforwards
: boolean or undefinedOnly for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled
fromPeer
: Raw.TypeInputPeerSource of messages
id
: Array of numberIds of messages
randomId
: Array of bigintRandom id to prevent resending of messages
toPeer
: Raw.TypeInputPeerDestination peer
topMsgId
: number or undefinedDestination forum topic
scheduleDate
: number or undefinedScheduled message date for scheduled messages
sendAs
: Raw.TypeInputPeer or undefinedForward the messages as the specified peer
quickReplyShortcut
: Raw.TypeInputQuickReplyShortcut or undefinedAdd the messages to the specified quick reply shortcut, instead.