2019-06-24 15:45:02 +02:00
|
|
|
---
|
|
|
|
title: updatePeerSettings
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Settings of a certain peer have changed
|
2019-06-24 15:45:02 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: updatePeerSettings
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
Settings of a certain peer have changed
|
2019-06-24 15:45:02 +02:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|peer|[Peer](../types/Peer.md) | Yes|The peer|
|
|
|
|
|settings|[PeerSettings](../types/PeerSettings.md) | Yes|Associated peer settings|
|
2019-06-24 15:45:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Update](../types/Update.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$updatePeerSettings = ['_' => 'updatePeerSettings', 'peer' => Peer, 'settings' => PeerSettings];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
updatePeerSettings={_='updatePeerSettings', peer=Peer, settings=PeerSettings}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|