Raw.UpdateServiceNotification

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 undefined

    If set, the message must be displayed in a popup.

  • invertMedia : boolean or undefined

    If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.

  • inboxDate : number or undefined

    When was the notification receivedthe message must also be stored locally as part of the message history with the user id 777000 (telegram notifications).

  • type : string

    String, 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 : string

    Message text

  • media : Raw.TypeMessageMedia

    Media content (optional)

  • entities : Array of Raw.TypeMessageEntity

    Message entities for styled text