LoginToken

class pyrogram.raw.types.auth.LoginToken

Login token (for QR code login).

Constructor of LoginToken.

Details:
  • Layer: 136

  • ID: 0x629f1980

Parameters
  • expires (int 32-bit) – Expiry 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.