2017-03-11 19:54:51 +01:00
|
|
|
---
|
|
|
|
title: notificationSettings
|
|
|
|
description: Contains information about notification settings for chat or chats
|
|
|
|
---
|
|
|
|
## Constructor: notificationSettings
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Contains information about notification settings for chat or chats
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|:-------------:|:--------:|------------:|
|
|
|
|
|mute\_for|[int](../types/int.md) | Yes|Time left before notifications will be unmuted|
|
|
|
|
|sound|[string](../types/string.md) | Yes|Audio file name for notifications, iPhone apps only|
|
|
|
|
|show\_preview|[Bool](../types/Bool.md) | Yes|Display message text/media in notification|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [NotificationSettings](../types/NotificationSettings.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
$notificationSettings = ['_' => 'notificationSettings', 'mute_for' => int, 'sound' => 'string', 'show_preview' => Bool];
|
2017-03-11 19:54:51 +01:00
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
{"_": "notificationSettings", "mute_for": int, "sound": "string", "show_preview": Bool}
|
2017-07-23 16:11:02 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
notificationSettings={_='notificationSettings', mute_for=int, sound='string', show_preview=Bool}
|
2017-03-11 19:54:51 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|