auth.ExportLoginToken

class pyrogram.raw.functions.auth.ExportLoginToken

Generate a login token, for login via QR code. The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken deep link » in the QR code.

Details:
  • Layer: 223

  • ID: B7E085FE

Parameters:
api_id (int 32-bit):

Application identifier (see. App configuration)

api_hash (str):

Application identifier hash (see. App configuration)

except_ids (List of int 64-bit):

List of already logged-in user IDs, to prevent logging in twice with the same user

Returns:

auth.LoginToken

TL Schema

auth.exportLoginToken#b7e085fe
api_id:int
api_hash:string
except_ids:Vector<long>

= auth.LoginToken

Parameter Tree

ExportLoginToken
├── api_idint
├── api_hashstring
└── except_idsVector < long >

Example

await app.invoke(
    ExportLoginToken(
        api_id=0,
        api_hash="text",
        except_ids=[0],
    )
)