mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 04:16:54 +01:00
1.1 KiB
1.1 KiB
title | description |
---|---|
updateServiceNotification | Service notification from the server. Upon receiving client should show popup with content of the notification |
Constructor: updateServiceNotification
Service notification from the server. Upon receiving client should show popup with content of the notification
Attributes:
Name | Type | Required | Description |
---|---|---|---|
type | string | Yes | Type of the notification |
content | MessageContent | Yes | Notification content |
Type: Update
Example:
$updateServiceNotification = ['_' => 'updateServiceNotification', 'type' => string, 'content' => MessageContent, ];
PWRTelegram json-encoded version:
{"_":"updateServiceNotification","type":"string","content":"MessageContent"}
Or, if you're into Lua:
updateServiceNotification={_='updateServiceNotification', type=string, content=MessageContent, }