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 URL in the QR code.

For more info, see login via QR code.

auth.loginToken#629f1980 expires:int token:bytes = auth.LoginToken;
auth.loginTokenMigrateTo#68e9916 dc_id:int token:bytes = auth.LoginToken;
auth.loginTokenSuccess#390d5c5e authorization:auth.Authorization = auth.LoginToken;
---functions---
auth.exportLoginToken#b1b41517 api_id:int api_hash:string except_ids:Vector<int> = auth.LoginToken;

Parameters

Name Type Description
api_id int Application identifier (see. App configuration)
api_hash string Application identifier hash (see. App configuration)
except_ids Vector<int> List of already logged-in user IDs, to prevent logging in twice with the same user

Result

auth.LoginToken

Related pages

Login via QR code

QR code login flow