Raw.messages.ForwardMessages
Forwards messages by their ids.
messages.forwardMessages#bb9fa475 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 allow_paid_stars:flags.21?long = 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;
allowPaidStars?: bigint;
}) {}
}
}
}This is a function constructor, you can use it as method when call invoke
Layer: 201
Constructor ID: 0xbb9fa475
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
allowPaidFloodskip: boolean or undefinedBots 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.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.
videoTimestamp: number or undefinedallowPaidStars: bigint or undefined