2018-04-01 13:19:25 +02:00
|
|
|
---
|
|
|
|
title: peerNotifySettings
|
|
|
|
description: peerNotifySettings attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: peerNotifySettings
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|---------------|----------|
|
|
|
|
|mute\_until|[int](../types/int.md) | Yes|
|
|
|
|
|sound|[string](../types/string.md) | Yes|
|
2018-04-01 13:24:46 +02:00
|
|
|
|show\_previews|[Bool](../types/Bool.md) | Yes|
|
|
|
|
|events\_mask|[int](../types/int.md) | Yes|
|
2018-04-01 13:19:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [PeerNotifySettings](../types/PeerNotifySettings.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2018-04-01 13:24:46 +02:00
|
|
|
$peerNotifySettings = ['_' => 'peerNotifySettings', 'mute_until' => int, 'sound' => 'string', 'show_previews' => Bool, 'events_mask' => int];
|
2018-04-01 13:19:25 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
2018-04-01 13:24:46 +02:00
|
|
|
{"_": "peerNotifySettings", "mute_until": int, "sound": "string", "show_previews": Bool, "events_mask": int}
|
2018-04-01 13:19:25 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2018-04-01 13:24:46 +02:00
|
|
|
peerNotifySettings={_='peerNotifySettings', mute_until=int, sound='string', show_previews=Bool, events_mask=int}
|
2018-04-01 13:19:25 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|