SetPrivacy¶
-
class
pyrogram.api.functions.account.
SetPrivacy
(key, rules: list)¶ -
ID
¶ 0xc9f81ce8
Parameters: - key – Either
InputPrivacyKeyStatusTimestamp
,InputPrivacyKeyChatInvite
,InputPrivacyKeyPhoneCall
orInputPrivacyKeyPhoneP2P
- rules – List of either
InputPrivacyValueAllowContacts
,InputPrivacyValueAllowAll
,InputPrivacyValueAllowUsers
,InputPrivacyValueDisallowContacts
,InputPrivacyValueDisallowAll
orInputPrivacyValueDisallowUsers
Raises: Returns: -