MadelineProtoDocs/old_docs/API_docs_v20/constructors/account.privacyRules.md

41 lines
920 B
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: account.privacyRules
description: Privacy rules
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_privacyRules.html
---
# Constructor: account.privacyRules
[Back to constructors index](index.md)
Privacy rules
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|rules|Array of [PrivacyRule](../types/PrivacyRule.md) | Yes|Privacy rules|
|users|Array of [User](../types/User.md) | Yes|Users to which the rules apply|
### Type: [account.PrivacyRules](../types/account.PrivacyRules.md)
### Example:
```php
$account.privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]];
```
Or, if you're into Lua:
```lua
account.privacyRules={_='account.privacyRules', rules={PrivacyRule}, users={User}}
```