auth.Authorization#

class pyrogram.raw.types.auth.Authorization#

Telegram API type.

Constructor of Authorization.

Details:
  • Layer: 224

  • ID: 2EA2C0D4

Parameters:
  • user (User) – N/A

  • setup_password_required (bool, optional) – N/A

  • otherwise_relogin_days (int 32-bit, optional) – N/A

  • tmp_sessions (int 32-bit, optional) – N/A

  • future_auth_token (bytes, optional) – N/A

Functions:

This object can be returned by 8 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

auth.FinishPasskeyLogin

Usable by Users Bots