InputPrivacyRule

class pyrogram.raw.base.InputPrivacyRule

Privacy rules indicate who can or can’t do something and are specified by a PrivacyRule, and its input counterpart InputPrivacyRule.

Constructors:

This base type has 10 constructors available.

InputPrivacyValueAllowAll

Allow all users

InputPrivacyValueAllowChatParticipants

Allow only participants of certain chats

InputPrivacyValueAllowCloseFriends

Allow only close friends »

InputPrivacyValueAllowContacts

Allow only contacts

InputPrivacyValueAllowPremium

{schema}

InputPrivacyValueAllowUsers

Allow only certain users

InputPrivacyValueDisallowAll

Disallow all

InputPrivacyValueDisallowChatParticipants

Disallow only participants of certain chats

InputPrivacyValueDisallowContacts

Disallow only contacts

InputPrivacyValueDisallowUsers

Disallow only certain users