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

x/mtkruto/tl/2_types.ts>MessageFwdHeader_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class MessageFwdHeader_
import { MessageFwdHeader_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Info about a forwarded message

Constructors

new
MessageFwdHeader_(params: { imported?: true; saved_out?: true; from_id?: enums.Peer; from_name?: string; date: number; channel_post?: number; post_author?: string; saved_from_peer?: enums.Peer; saved_from_msg_id?: number; saved_from_id?: enums.Peer; saved_from_name?: string; saved_date?: number; psa_type?: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
channel_post: number

ID of the channel message that was forwarded

date: number

When was the message originally sent

optional
from_id: enums.Peer

The ID of the user that originally sent the message

optional
from_name: string

The name of the user that originally sent the message

optional
imported: true
optional
post_author: string

For channels and if signatures are enabled, author of the channel message

optional
psa_type: string

PSA type

optional
saved_date: number

Only for forwarded messages reforwarded to saved messages », indicates when was the original message sent (i.e. if user A sends a message @ unixtime 1, then user B forwards it somewhere @ unixtime 2, then user C saves it to saved messages @ unixtime 3, this field will contain 2, date will contain 1 and the date of the containing message will contain 3).

optional
saved_from_id: enums.Peer

Only for forwarded messages reforwarded to saved messages », contains the sender of the original message (i.e. if user A sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the ID of user B and from_id will contain the ID of user A).

optional
saved_from_msg_id: number

Only for messages forwarded to saved messages », contains the original ID of the message in saved_from_peer.

optional
saved_from_name: string

Only for forwarded messages from users with forward privacy enabled, sent by users with forward privacy enabled, reforwarded to saved messages », contains the sender of the original message (i.e. if user A (fwd privacy enabled) sends a message, then user B (fwd privacy enabled) forwards it somewhere, then user C saves it to saved messages, this field will contain the name of user B and from_name will contain the name of user A).

optional
saved_from_peer: enums.Peer

Only for messages forwarded to saved messages », contains the dialog where the message was originally sent.

optional
saved_out: true

Only for messages forwarded to saved messages », set if the original message was outgoing (though the message may have been originally outgoing even if this flag is not set, if from_id points to the current user).

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc