2017-01-25 23:16:22 +01:00
|
|
|
---
|
|
|
|
title: updatePrivacy
|
|
|
|
description: updatePrivacy attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: updatePrivacy
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
2017-03-11 19:54:51 +01:00
|
|
|
|key|[PrivacyKey](../types/PrivacyKey.md) | Yes|
|
|
|
|
|rules|Array of [PrivacyRule](../types/PrivacyRule.md) | Yes|
|
2017-01-25 23:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Update](../types/Update.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2017-03-11 19:54:51 +01:00
|
|
|
$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => [PrivacyRule], ];
|
2017-01-25 23:16:22 +01:00
|
|
|
```
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
updatePrivacy={_='updatePrivacy', key=PrivacyKey, rules={PrivacyRule}, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|