PrivacyRule
- class pyrogram.types.PrivacyRule
A privacy rule.
- Parameters:
allow_all (
bool, optional) – Allow all users.allow_chats (
bool, optional) – Allow only participants of certain chats.allow_contacts (
bool, optional) – Allow contacts onlyallow_premium (
bool, optional) – Allow only users with a Premium subscription, currently only usable forCHAT_INVITE.allow_users (
bool, optional) – Allow only participants of certain users.users (List of
User, optional) – List of users.chats (List of
Chat, optional) – List of chats.