MadelineProtoDocs/old_docs/API_docs_v40/constructors/account.privacyRules.md
2020-06-16 17:50:25 +02:00

1.0 KiB

title description image redirect_from
account.privacyRules Privacy rules https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/account_privacyRules.html

Constructor: account.privacyRules

Back to constructors index

Privacy rules

Attributes:

Name Type Required Description
rules Array of PrivacyRule Yes Privacy rules
chats Array of Chat Yes Chats to which the rules apply
users Array of User Yes Users to which the rules apply

Type: account.PrivacyRules

Example:

$account.privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'chats' => [Chat, Chat], 'users' => [User, User]];

Or, if you're into Lua:

account.privacyRules={_='account.privacyRules', rules={PrivacyRule}, chats={Chat}, users={User}}