---
title: "updateServiceNotification"
description: "A service message for the user."
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateServiceNotification
[Back to constructors index](/API_docs/constructors/index.html)
A service message for the user.
The app must show the message to the user upon receiving this update. In case the **popup** parameter was passed, the text message must be displayed in a popup alert immediately upon receipt. It is recommended to handle the text as you would an ordinary message in terms of highlighting links, etc. The message must also be stored locally as part of the message history with the user id `777000` (Telegram Notifications).
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|popup|[Bool](/API_docs/types/Bool.html) | Optional|If set, the message must be displayed in a popup.|
|invert\_media|[Bool](/API_docs/types/Bool.html) | Optional|If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.|
|inbox\_date|[int](/API_docs/types/int.html) | Optional|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](/API_docs/types/string.html) | Yes|String, identical in format and contents to the [**type**](https://core.telegram.org/api/errors#error-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](/API_docs/types/string.html) | Yes|Message text|
|media|[MessageMedia](/API_docs/types/MessageMedia.html) | Optional|Media content (optional)|
|entities|Array of [MessageEntity](/API_docs/types/MessageEntity.html) | Yes|[Message entities for styled text](https://core.telegram.org/api/entities)|
|parse\_mode| [string](/API_docs/types/string.html) | Whether to parse HTML or Markdown markup in the message| Optional |
### Type: [Update](/API_docs/types/Update.html)
## Usage of parse_mode:
Set parse_mode to html to enable HTML parsing of the message.
Set parse_mode to Markdown to enable markdown parsing of the message.
The following tags are currently supported:
```html
a newline
bold works ok, internal tags are stripped
bold
italic
italic
underline
strikethrough
strikethrough
strikethrough
inline fixed-width code
pre-formatted fixed-width code block
pre-formatted fixed-width code blockURL Mention by username Mention by user id Mention by user id Custom emoji:
Pre tags can have a language attribute