account.PrivacyRules

class pyrogram.raw.types.account.PrivacyRules

Privacy rules

Constructor of PrivacyRules.

Details:
  • Layer: 194

  • ID: 50A04E45

Parameters:
  • rules (List of PrivacyRule) – Privacy rules

  • chats (List of Chat) – Chats to which the rules apply

  • users (List of User) – Users to which the rules apply

Functions:

This object can be returned by 2 functions.

account.GetPrivacy

Get privacy settings of current account

account.SetPrivacy

Change privacy settings of current account