PrivacyRule

class pyrogram.raw.base.PrivacyRule

Privacy rules together with privacy keys indicate what can or can’t someone do and are specified by a PrivacyRule constructor, and its input counterpart InputPrivacyRule.

Constructors:

This base type has 10 constructors available.

PrivacyValueAllowAll

Allow all users

PrivacyValueAllowChatParticipants

Allow all participants of certain chats

PrivacyValueAllowCloseFriends

Allow only close friends »

PrivacyValueAllowContacts

Allow all contacts

PrivacyValueAllowPremium

{schema}

PrivacyValueAllowUsers

Allow only certain users

PrivacyValueDisallowAll

Disallow all users

PrivacyValueDisallowChatParticipants

Disallow only participants of certain chats

PrivacyValueDisallowContacts

Disallow only contacts

PrivacyValueDisallowUsers

Disallow only certain users