Authorization

class pyrogram.raw.types.auth.Authorization

Contains user authorization info.

Constructor type of Authorization.

Details
  • Layer: 126

  • ID: 0xcd050916

Parameters
  • user (User) – Info on authorized user.

  • tmp_sessions (int 32-bit, optional) – Temporary passport sessions.

Methods

This object can be returned by 6 methods:

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-centre.

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.