logo
Electrogram Docs
RPC Errors
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
      • Bound Methods
      • Enumerations
      • Update Handlers
      • Decorators
      • RPC Errors
        • 303 - SeeOther
        • 400 - BadRequest
        • 401 - Unauthorized
        • 403 - Forbidden
        • 406 - NotAcceptable
        • 420 - Flood
        • 500 - InternalServerError
      • RPC Errors
        • 303 - SeeOther
        • 400 - BadRequest
        • 401 - Unauthorized
        • 403 - Forbidden
        • 406 - NotAcceptable
        • 420 - Flood
        • 500 - InternalServerError
      • Update Filters
      • Using Filters
      • Creating Filters
      • More on Updates
      • Client Settings
      • Text Formatting
      • Synchronous Usage
      • 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

    RPC Errors

    All Electrogram API errors live inside the errors sub-package: pyrogram.errors. The errors ids listed here are shown as UPPER_SNAKE_CASE, but the actual exception names to import from Electrogram follow the usual PascalCase convention.

    from pyrogram.errors import FloodWait
    
    try:
        ...
    except FloodWait as e:
        ...
    
    • 303 - SeeOther

    • 400 - BadRequest

    • 401 - Unauthorized

    • 403 - Forbidden

    • 406 - NotAcceptable

    • 420 - Flood

    • 500 - InternalServerError

    Back to top
    Previous Decorators
    Next 303 - SeeOther