Error

exception pyrogram.Error(x: int = None, query_type: type = None)

Bases: Exception

This is the base exception class for all Telegram API related errors. For a finer grained control, see the specific errors below.