MadelineProtoDocs/docs/API_docs/constructors/peerSettings.md
2019-12-27 17:48:04 +01:00

44 lines
1.4 KiB
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|Whether we can still report the user for spam|
|add\_contact|[Bool](../types/Bool.md) | Optional|Whether we can add the user as contact|
|block\_contact|[Bool](../types/Bool.md) | Optional|Whether we can block the user|
|share\_contact|[Bool](../types/Bool.md) | Optional|Whether we can share the user's contact|
|need\_contacts\_exception|[Bool](../types/Bool.md) | Optional|Whether a special exception for contacts is needed|
|report\_geo|[Bool](../types/Bool.md) | Optional|Whether we can report a geogroup is irrelevant for this location|
### Type: [PeerSettings](../types/PeerSettings.md)
### Example:
```php
$peerSettings = ['_' => 'peerSettings', 'report_spam' => Bool, 'add_contact' => Bool, 'block_contact' => Bool, 'share_contact' => Bool, 'need_contacts_exception' => Bool, 'report_geo' => Bool];
```
Or, if you're into Lua:
```lua
peerSettings={_='peerSettings', report_spam=Bool, add_contact=Bool, block_contact=Bool, share_contact=Bool, need_contacts_exception=Bool, report_geo=Bool}
```