Raw.UpdateServiceNotification
A service message for the user.
updateServiceNotification#ebe46819 flags:# popup:flags.0?true invert_media:flags.2?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector<MessageEntity> = Update;
export namespace Raw {
export class UpdateServiceNotification {
constructor(params: {
popup?: boolean;
invertMedia?: boolean;
inboxDate?: number;
type: string;
message: string;
media: Raw.TypeMessageMedia;
entities: Array<Raw.TypeMessageEntity>;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xebe46819
Property
popup
: boolean or undefinedIf set, the message must be displayed in a popup.
invertMedia
: boolean or undefinedIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
inboxDate
: number or undefinedWhen was the notification receivedthe message must also be stored locally as part of the message history with the user id 777000 (telegram notifications).
type
: stringString, identical in format and contents to the type field in api errors. describes type of service message. it is acceptable to ignore repeated messages of the same type within a short period of time (15 minutes).
message
: stringMessage text
media
: Raw.TypeMessageMediaMedia content (optional)
entities
: Array of Raw.TypeMessageEntityMessage entities for styled text