MadelineProtoDocs/docs/API_docs/constructors/updatePrivacy.md

31 lines
782 B
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "updatePrivacy"
description: "Privacy rules were changed"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updatePrivacy
[Back to constructors index](/API_docs/constructors/index.html)
Privacy rules were changed
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|key|[PrivacyKey](/API_docs/types/PrivacyKey.html) | Yes|Peers to which the privacy rules apply|
|rules|Array of [PrivacyRule](/API_docs/types/PrivacyRule.html) | Yes|New privacy rules|
### Type: [Update](/API_docs/types/Update.html)
### Example:
```
$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule, PrivacyRule]];
```