2019-05-03 21:10:09 +02:00
|
|
|
---
|
|
|
|
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 |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|report\_spam|[Bool](../types/Bool.md) | Optional|Whether we can still report the user for spam|
|
2019-05-03 21:10:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [PeerSettings](../types/PeerSettings.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$peerSettings = ['_' => 'peerSettings', 'report_spam' => Bool];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
peerSettings={_='peerSettings', report_spam=Bool}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|