account.SetPrivacy#

class pyrogram.raw.functions.account.SetPrivacy#

Change privacy settings of current account

Details:
  • Layer: 211

  • ID: C9F81CE8

Parameters:
  • key (InputPrivacyKey) – New privacy rule

  • rules (List of InputPrivacyRule) – Peers to which the privacy rule will apply.

Returns:

account.PrivacyRules