MadelineProtoDocs/docs/API_docs/constructors/peerSettings.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

45 lines
757 B
Markdown

---
title: peerSettings
description: Peer settings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: peerSettings
[Back to constructors index](index.md)
Peer settings
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|report\_spam|[Bool](../types/Bool.md) | Optional|Report spam?|
### Type: [PeerSettings](../types/PeerSettings.md)
### Example:
```php
$peerSettings = ['_' => 'peerSettings', 'report_spam' => Bool];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "peerSettings", "report_spam": Bool}
```
Or, if you're into Lua:
```lua
peerSettings={_='peerSettings', report_spam=Bool}
```