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 8 constructors available.

InputPrivacyValueAllowAll

Allow all users.

InputPrivacyValueAllowChatParticipants

Allow only participants of certain chats.

InputPrivacyValueAllowContacts

Allow only contacts.

InputPrivacyValueAllowUsers

Allow only certain users.

InputPrivacyValueDisallowAll

Disallow all.

InputPrivacyValueDisallowChatParticipants

Disallow only participants of certain chats.

InputPrivacyValueDisallowContacts

Disallow only contacts.

InputPrivacyValueDisallowUsers

Disallow only certain users.