account.setPrivacy #

Change privacy settings of current account

Layer 223

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;

Parameters #

NameTypeDescription
keyInputPrivacyKeyNew privacy rule
rulesVector<InputPrivacyRule>Peers to which the privacy rule will apply.

Result #

account.PrivacyRules

Only users can use this method #

Possible errors #

CodeTypeDescription
400PRIVACY_KEY_INVALIDThe privacy key is invalid.
400PRIVACY_TOO_LONGToo many privacy rules were specified, the current limit is 1000.
400PRIVACY_VALUE_INVALIDThe specified privacy rule combination is invalid.