Link Search Menu Expand Document

Constructor: account.privacyRules

Back to constructors index

Privacy rules

Attributes:

NameTypeRequiredDescription
rulesArray of PrivacyRuleYesPrivacy rules
chatsArray of ChatYesChats to which the rules apply
usersArray of UserYesUsers to which the rules apply

Type: account.PrivacyRules

Example:

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