LoginToken

class pyrogram.raw.types.auth.LoginToken

Login token (for QR code login).

Constructor type of LoginToken.

Details
  • Layer: 126

  • ID: 0x629f1980

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

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

Methods

This object can be returned by 2 methods:

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.