telegram api method · layer 229 · #b7e085fe
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.
definition
auth.exportLoginToken#b7e085fe api_id:int api_hash:string except_ids:Vector<long> = 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<long> | List of already logged-in user IDs, to prevent logging in twice with the same user |
returns
errors (4)
| code | error | description |
|---|---|---|
| 400 | API_ID_INVALID | API ID invalid. |
| 400 | API_ID_PUBLISHED_FLOOD | This API id was published somewhere, you can't use it now. |
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 500 | AUTH_RESTART | Restart the authorization process. |
history
present in layers 107–229 · constructor id changed 1×
| id | layers |
|---|---|
| #b1b41517 | 107–132 |
| #b7e085fe | 133–229 |