Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/3_functions.ts>messages_forwardMessages_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class messages_forwardMessages_
extends Function_<enums.Updates>
import { messages_forwardMessages_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Forwards messages by their IDs.

Constructors

new
messages_forwardMessages_(params: { silent?: true; background?: true; with_my_score?: true; drop_author?: true; drop_media_captions?: true; noforwards?: true; from_peer: enums.InputPeer; id: Array<number>; random_id: Array<bigint>; to_peer: enums.InputPeer; top_msg_id?: number; schedule_date?: number; send_as?: enums.InputPeer; quick_reply_shortcut?: enums.InputQuickReplyShortcut; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
background: true

Whether to send the message in background

optional
drop_author: true

Whether to forward messages without quoting the original author

optional
drop_media_captions: true

Whether to strip captions from media

from_peer: enums.InputPeer

Source of messages

id: Array<number>

IDs of messages

optional
noforwards: true

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

optional
quick_reply_shortcut: enums.InputQuickReplyShortcut
random_id: Array<bigint>

Random ID to prevent resending of messages

optional
schedule_date: number

Scheduled message date for scheduled messages

optional
send_as: enums.InputPeer

Forward the messages as the specified peer

optional
silent: true

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

to_peer: enums.InputPeer

Destination peer

optional
top_msg_id: number

Destination forum topic

optional
with_my_score: true

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

Static Properties

__F: (params: { silent?: true; background?: true; with_my_score?: true; drop_author?: true; drop_media_captions?: true; noforwards?: true; from_peer: enums.InputPeer; id: Array<number>; random_id: Array<bigint>; to_peer: enums.InputPeer; top_msg_id?: number; schedule_date?: number; send_as?: enums.InputPeer; quick_reply_shortcut?: enums.InputQuickReplyShortcut; }) => enums.Updates
readonly
[name]: string
readonly
[paramDesc]: ParamDesc