auth.exportLoginToken
Generate a login token, for login via QR code.
Generate a login token, for [login via QR code](https://core.telegram.org/api/qr-login.md). The generated login token should be encoded using base64url, then shown as a `tg://login?token=base64encodedtoken` [deep link »](https://core.telegram.org/api/links.md#qr-code-login-links) in the QR code.
| Name | Type | Required | Description |
|---|---|---|---|
api_id | int | Yes | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) |
api_hash | string | Yes | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) |
except_ids | Vector<long> | Yes | List of already logged-in user IDs, to prevent logging in twice with the same user |
Replies
auth.LoginToken
MTProto RPC
- 400 · API_ID_INVALID — API ID invalid.
- 400 · API_ID_PUBLISHED_FLOOD — This API id was published somewhere, you can't use it now.
- 500 · AUTH_RESTART — Restart the authorization process.