telegram api constructor · layer 229 · #ebe46819

updateServiceNotification

A service message for the user.

definition

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;

parameters

nametypedescription
flags#Flags, see TL conditional fields
popupflags.0?trueIf set, the message must be displayed in a popup.
invert_mediaflags.2?trueIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.
inbox_dateflags.1?intWhen was the notification receivedThe message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications).
typestringString, 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).
messagestringMessage text
mediaMessageMediaMedia content (optional)
entitiesVector<MessageEntity>Message entities for styled text

type

Update · 164 other constructors

history

present in layers 18–229 · constructor id changed 1×

idlayers
#382dd3e418–46
#ebe4681962–229