1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 10:36:54 +01:00
MadelineProto/docs/TD_docs/constructors/updatePrivacy.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

848 B

title description
updatePrivacy Some privacy settings has changed

Constructor: updatePrivacy

Back to constructors index

Some privacy settings has changed

Attributes:

Name Type Required Description
key PrivacyKey Yes Privacy key
rules privacyRules Yes New privacy rules

Type: Update

Example:

$updatePrivacy = ['_' => 'updatePrivacy', 'key' => PrivacyKey, 'rules' => privacyRules];

PWRTelegram json-encoded version:

{"_": "updatePrivacy", "key": PrivacyKey, "rules": privacyRules}

Or, if you're into Lua:

updatePrivacy={_='updatePrivacy', key=PrivacyKey, rules=privacyRules}