MadelineProto/docs/TD_docs/constructors/updatePrivacy.md

46 lines
848 B
Markdown
Raw Normal View History

---
title: updatePrivacy
description: Some privacy settings has changed
---
## Constructor: updatePrivacy
[Back to constructors index](index.md)
Some privacy settings has changed
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|key|[PrivacyKey](../types/PrivacyKey.md) | Yes|Privacy key|
|rules|[privacyRules](../types/privacyRules.md) | Yes|New privacy rules|
### Type: [Update](../types/Update.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => privacyRules];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "updatePrivacy", "key": PrivacyKey, "rules": privacyRules}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
updatePrivacy={_='updatePrivacy', key=PrivacyKey, rules=privacyRules}
```