Raw.MessageFwdHeader
Info about a forwarded message
messageFwdHeader#4e4df4bb flags:# imported:flags.7?true saved_out:flags.11?true from_id:flags.0?Peer from_name:flags.5?string date:int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int saved_from_id:flags.8?Peer saved_from_name:flags.9?string saved_date:flags.10?int psa_type:flags.6?string = MessageFwdHeader;
export namespace Raw {
export class MessageFwdHeader {
constructor(params: {
imported?: boolean;
savedOut?: boolean;
fromId?: Raw.TypePeer;
fromName?: string;
date: number;
channelPost?: number;
postAuthor?: string;
savedFromPeer?: Raw.TypePeer;
savedFromMsgId?: number;
savedFromId?: Raw.TypePeer;
savedFromName?: string;
savedDate?: number;
psaType?: string;
}) {}
}
}
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x4e4df4bb
Property
imported
: boolean or undefinedWhether this message was imported from a foreign chat service, click here for more info
savedOut
: boolean or undefinedOnly 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 fromId points to the current user).
fromId
: Raw.TypePeer or undefinedThe id of the user that originally sent the message
fromName
: string or undefinedThe name of the user that originally sent the message
date
: numberWhen was the message originally sent
channelPost
: number or undefinedId of the channel message that was forwarded
postAuthor
: string or undefinedFor channels and if signatures are enabled, author of the channel message
savedFromPeer
: Raw.TypePeer or undefinedOnly for messages forwarded to saved messages, contains the dialog where the message was originally sent.
savedFromMsgId
: number or undefinedOnly for messages forwarded to saved messages, contains the original id of the message in savedFromPeer.
savedFromId
: Raw.TypePeer or undefinedOnly 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 fromId will contain the id of user a).
savedFromName
: string or undefinedOnly 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 fromName will contain the name of user a).
savedDate
: number or undefinedOnly 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).
psaType
: string or undefinedPsa type