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>UpdateServiceNotification_

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

A service message for the user.

Constructors

new
UpdateServiceNotification_(params: { popup?: true; invert_media?: true; inbox_date?: number; type: string; message: string; media: enums.MessageMedia; entities: Array<enums.MessageEntity>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
entities: Array<enums.MessageEntity>
optional
inbox_date: number

When was the notification received
The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).

optional
invert_media: true

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

media: enums.MessageMedia

Media content (optional)

message: string

Message text

optional
popup: true

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

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).

Static Properties

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