401 - Unauthorized

exception pyrogram.errors.exceptions.unauthorized_401.Unauthorized(x: int = None, query_type: type = None)
CODE = 401

RPC Error Code

Type:int
exception pyrogram.errors.exceptions.unauthorized_401.AuthKeyUnregistered(x: int = None, query_type: type = None)

The key is not registered in the system

ID = 'AUTH_KEY_UNREGISTERED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.unauthorized_401.AuthKeyInvalid(x: int = None, query_type: type = None)

The key is invalid

ID = 'AUTH_KEY_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.unauthorized_401.UserDeactivated(x: int = None, query_type: type = None)

The user has been deleted/deactivated

ID = 'USER_DEACTIVATED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.unauthorized_401.SessionRevoked(x: int = None, query_type: type = None)

The authorization has been invalidated, because of the user terminating all sessions

ID = 'SESSION_REVOKED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.unauthorized_401.SessionExpired(x: int = None, query_type: type = None)

The authorization has expired

ID = 'SESSION_EXPIRED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.unauthorized_401.ActiveUserRequired(x: int = None, query_type: type = None)

The method is only available to already activated users

ID = 'ACTIVE_USER_REQUIRED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.unauthorized_401.AuthKeyPermEmpty(x: int = None, query_type: type = None)

The method is unavailable for temporary authorization key, not bound to permanent

ID = 'AUTH_KEY_PERM_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.unauthorized_401.SessionPasswordNeeded(x: int = None, query_type: type = None)

Two-step verification password required

ID = 'SESSION_PASSWORD_NEEDED'

RPC Error ID

Type:str