Unauthorized

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

Bases: pyrogram.api.errors.error.Error

CODE = 401

int – Error Code

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

Bases: pyrogram.api.errors.exceptions.unauthorized_401.Unauthorized

The key is not registered in the system

ID = 'AUTH_KEY_UNREGISTERED'

str – Error ID

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

Bases: pyrogram.api.errors.exceptions.unauthorized_401.Unauthorized

The key is invalid

ID = 'AUTH_KEY_INVALID'

str – Error ID

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

Bases: pyrogram.api.errors.exceptions.unauthorized_401.Unauthorized

The user has been deleted/deactivated

ID = 'USER_DEACTIVATED'

str – Error ID

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

Bases: pyrogram.api.errors.exceptions.unauthorized_401.Unauthorized

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

ID = 'SESSION_REVOKED'

str – Error ID

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

Bases: pyrogram.api.errors.exceptions.unauthorized_401.Unauthorized

The authorization has expired

ID = 'SESSION_EXPIRED'

str – Error ID

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

Bases: pyrogram.api.errors.exceptions.unauthorized_401.Unauthorized

The method is only available to already activated users

ID = 'ACTIVE_USER_REQUIRED'

str – Error ID

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

Bases: pyrogram.api.errors.exceptions.unauthorized_401.Unauthorized

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

ID = 'AUTH_KEY_PERM_EMPTY'

str – Error ID

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

Bases: pyrogram.api.errors.exceptions.unauthorized_401.Unauthorized

Two-step verification password required

ID = 'SESSION_PASSWORD_NEEDED'

str – Error ID