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

InputPrivacyValueAllowAll

Allow all users

InputPrivacyValueAllowBots

Allow bots and mini apps

InputPrivacyValueAllowChatParticipants

Allow only participants of certain chats

InputPrivacyValueAllowCloseFriends

Allow only close friends »

InputPrivacyValueAllowContacts

Allow only contacts

InputPrivacyValueAllowPremium

Allow only users with a Premium subscription », currently only usable for inputPrivacyKeyChatInvite.

InputPrivacyValueAllowUsers

Allow only certain users

InputPrivacyValueDisallowAll

Disallow all

InputPrivacyValueDisallowBots

Disallow bots and mini apps

InputPrivacyValueDisallowChatParticipants

Disallow only participants of certain chats

InputPrivacyValueDisallowContacts

Disallow only contacts

InputPrivacyValueDisallowUsers

Disallow only certain users