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.
Example
TL schema
Parameters
Name | Type | Description |
api_id | Application identifier (see. App configuration) | |
api_hash | Application identifier hash (see. App configuration) | |
except_ids | List of already logged-in user IDs, to prevent logging in twice with the same user |
Result
Possible errors
Code | Type | Description |
Can bots use this methd ?
yes
Related pages
QR code login flow
Last updated