PrivacyRuleType¶
- class pyrogram.enums.PrivacyRuleType
Bases:
AutoNamePrivacy rule type enumeration used in
PrivacyRule.- ALLOW_ALL = <class 'pyrogram.raw.types.privacy_value_allow_all.PrivacyValueAllowAll'>
Allow all
- ALLOW_BOTS = <class 'pyrogram.raw.types.privacy_value_allow_bots.PrivacyValueAllowBots'>
Allow only bots
- ALLOW_CHAT_PARTICIPANTS = <class 'pyrogram.raw.types.privacy_value_allow_chat_participants.PrivacyValueAllowChatParticipants'>
Allow only participants of certain chats
- ALLOW_CLOSE_FRIENDS = <class 'pyrogram.raw.types.privacy_value_allow_close_friends.PrivacyValueAllowCloseFriends'>
Allow only close friends
- ALLOW_CONTACTS = <class 'pyrogram.raw.types.privacy_value_allow_contacts.PrivacyValueAllowContacts'>
Allow all contacts
- ALLOW_PREMIUM = <class 'pyrogram.raw.types.privacy_value_allow_premium.PrivacyValueAllowPremium'>
Allow only users with a Premium subscription. Currently only usable for
CHAT_INVITE.
- ALLOW_USERS = <class 'pyrogram.raw.types.privacy_value_allow_users.PrivacyValueAllowUsers'>
Allow only certain users
- DISALLOW_ALL = <class 'pyrogram.raw.types.privacy_value_disallow_all.PrivacyValueDisallowAll'>
Disallow all
- DISALLOW_BOTS = <class 'pyrogram.raw.types.privacy_value_disallow_bots.PrivacyValueDisallowBots'>
Disallow bots and miniapps
- DISALLOW_CHAT_PARTICIPANTS = <class 'pyrogram.raw.types.privacy_value_disallow_chat_participants.PrivacyValueDisallowChatParticipants'>
Disallow only participants of certain chats
- DISALLOW_CONTACTS = <class 'pyrogram.raw.types.privacy_value_disallow_contacts.PrivacyValueDisallowContacts'>
Disallow contacts only
- DISALLOW_USERS = <class 'pyrogram.raw.types.privacy_value_disallow_users.PrivacyValueDisallowUsers'>
Disallow only certain users