Skip to content
logo
Electrogram Docs
InputPrivacyRule
Initializing search
    Electrogram
    • Introduction
    • Getting Started
    • API Reference
    • Topic Guides
    • Meta
    • Telegram Raw API
    Electrogram
      • Quick Start
      • Install Guide
      • Project Setup
      • Authorization
      • Invoking Methods
      • Handling Updates
      • Error Handling
      • Examples
      • Electrogram Client
      • Available Methods
      • Available Types
        • Authorization
        • Bot commands
        • Bots
        • Bot keyboards
        • Telegram Business
        • Inline Mode
        • Input Media
        • Input Message Content
        • Input Privacy Rule
          • InputPrivacyRule
            • C pyrogram.types.InputPrivacyRule
          • InputPrivacyRuleAllowAll
          • InputPrivacyRuleAllowChats
          • InputPrivacyRuleAllowContacts
          • InputPrivacyRuleAllowPremium
          • InputPrivacyRuleAllowUsers
          • InputPrivacyRuleDisallowAll
          • InputPrivacyRuleDisallowChats
          • InputPrivacyRuleDisallowContacts
          • InputPrivacyRuleDisallowUsers
        • Messages & Media
        • Payments
        • Stories
        • Users & Chats
      • Bound Methods
      • Available Enums
      • Update Handlers
      • Decorators
      • RPC Errors
      • Update Filters
      • Using Filters
      • Creating Filters
      • More on Updates
      • Client Settings
      • Text Formatting
      • Smart Plugins
      • Storage Engines
      • Object Serialization
      • Proxy Settings
      • Scheduling Tasks
      • MTProto vs. Bot API
      • Debugging
      • Test Servers
      • Advanced Usage
      • Voice Calls
      • Frequently Asked Questions
      • Support Electrogram
      • Raw Functions
      • Raw Types
      • Raw Base
    • C pyrogram.types.InputPrivacyRule

    InputPrivacyRule

    class pyrogram.types.InputPrivacyRule

    Content of a privacy rule.

    It should be one of:

    • InputPrivacyRuleAllowAll

    • InputPrivacyRuleAllowContacts

    • InputPrivacyRuleAllowPremium

    • InputPrivacyRuleAllowUsers

    • InputPrivacyRuleAllowChats

    • InputPrivacyRuleDisallowAll

    • InputPrivacyRuleDisallowContacts

    • InputPrivacyRuleDisallowUsers

    • InputPrivacyRuleDisallowChats