auth.LoginToken#

class pyrogram.raw.types.auth.LoginToken#

Login token (for QR code login).

Constructor of LoginToken.

Details:
  • Layer: 158

  • ID: 629F1980

Parameters:
  • expires (int 32-bit) – Expiration date of QR code.

  • token (bytes) – Token to render in QR code.

Functions:

This object can be returned by 2 functions.

auth.ExportLoginToken

Generate a login token, for login via QR code.

auth.ImportLoginToken

Login using a redirected login token, generated in case of DC mismatch during QR code login.