Layer 220
UpdateServiceNotification
A service message for the user.
constructor
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Popup | flags.0?true | If set, the message must be displayed in a popup. |
| InvertMedia | flags.2?true | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |
| InboxDate | flags.1?int | 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). |
| 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 | MessageMedia | Media content (optional) |
| Entities | Vector<MessageEntity> | Message entities for styled text |
Returns
UpdateGogram Example
// Creating UpdateServiceNotification constructor obj := &tg.UpdateServiceNotification{ Type: "...", Message: "...", Media: &tg.MessageMedia{}, Entities: []tg.MessageEntity{&tg.MessageEntityBold{Offset: 0, Length: 4}}, // Optional fields: // Popup: true, // InvertMedia: true, // InboxDate: 0, }