Layer 220
AuthExportLoginToken
Generate a login token, for login via QR code. The generated login token should be encoded using base 64 url, then shown as a tg://login?token=base 64 encodedtoken deep link in the QR code.
method
Users
Parameters
| Name | Type | Description |
|---|---|---|
| ApiId | int | Application identifier (see. App configuration ) |
| ApiHash | string | Application identifier hash (see. App configuration ) |
| ExceptIds | Vector<long> | List of already logged-in user IDs, to prevent logging in twice with the same user |
Returns
auth.LoginTokenPossible Errors
| Code | Type | 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. |
Gogram Example
// AuthExportLoginToken - positional arguments result, err := client.AuthExportLoginToken(0, "...", []long{}) if err != nil { // handle error } // result is *tg.AuthLoginToken