Raw.MessageService
Indicates a service message
messageService#2b085862 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction ttl_period:flags.25?int = Message;
export namespace Raw {
export class MessageService {
constructor(params: {
out?: boolean;
mentioned?: boolean;
mediaUnread?: boolean;
silent?: boolean;
post?: boolean;
legacy?: boolean;
id: number;
fromId?: Raw.TypePeer;
peerId: Raw.TypePeer;
replyTo?: Raw.TypeMessageReplyHeader;
date: number;
action: Raw.TypeMessageAction;
ttlPeriod?: number;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x2b085862
Property
out
: boolean or undefinedWhether the message is outgoing
mentioned
: boolean or undefinedWhether we were mentioned in the message
mediaUnread
: boolean or undefinedWhether the message contains unread media
silent
: boolean or undefinedWhether the message is silent
post
: boolean or undefinedWhether it’s a channel post
legacy
: boolean or undefinedThis is a legacy message: it has to be refetched with the new layer
id
: numberMessage id
fromId
: Raw.TypePeer or undefinedId of the sender of this message
peerId
: Raw.TypePeerSender of service message
replyTo
: Raw.TypeMessageReplyHeader or undefinedReply (thread) information
date
: numberMessage date
action
: Raw.TypeMessageActionEvent connected with the service message
ttlPeriod
: number or undefinedTime to live of the message, once message.date+message.ttlPeriod === time(), the message will be deleted on the server, and must be deleted locally as well.