Layer 227
UpdateServiceNotification
A service message for the user.
constructor
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
| Name | Type | Description |
|---|---|---|
| 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{ Popup: nil, InvertMedia: nil, InboxDate: nil, Type: "Hello, World!", Message: "Hello, World!", Media: &tg.MessageMedia{}, // ... more required fields }