auth.Authorization#

class pyrogram.raw.base.auth.Authorization#

Object contains info on user authorization.

Constructors:

This base type has 2 constructors available.

auth.Authorization

Contains user authorization info.

auth.AuthorizationSignUpRequired

An account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up.

Functions:

This object can be returned by 7 functions.

auth.SignUp

Registers a validated phone number in the system.

auth.SignIn

Signs in a user with a validated phone number.

auth.ImportAuthorization

Logs in a user using a key transmitted from his native data-center.

auth.ImportBotAuthorization

Login as a bot.

auth.CheckPassword

Try logging to an account protected by a 2FA password.

auth.RecoverPassword

Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.

auth.ImportWebTokenAuthorization

Login by importing an authorization token.