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

Telegram API type.

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

InputPrivacyValueDisallowBots

Telegram API type.

InputPrivacyValueDisallowChatParticipants

Disallow only participants of certain chats

InputPrivacyValueDisallowContacts

Disallow only contacts

InputPrivacyValueDisallowUsers

Disallow only certain users