Change privacy settings of current account
account.privacyRules#50a04e45 rules:Vector<PrivacyRule> chats:Vector<Chat> users:Vector<User> = account.PrivacyRules;
---functions---
account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector<InputPrivacyRule> = account.PrivacyRules;
Name | Type | Description |
---|---|---|
key | InputPrivacyKey | Peers to which the privacy rules apply |
rules | Vector<InputPrivacyRule> | New privacy rules |
Code | Type | Description |
---|---|---|
400 | PRIVACY_KEY_INVALID | The privacy key is invalid. |
400 | PRIVACY_VALUE_INVALID | The specified privacy rule combination is invalid. |