Layer 220
AuthImportLoginToken
Login using a redirected login token, generated in case of DC mismatch during QR code login.
method
Users
auth.importLoginToken#95ac5ce4 token:bytes = auth.LoginToken;
Parameters
| Name | Type | Description |
|---|---|---|
| Token | bytes | Login token |
Returns
auth.LoginTokenPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | AUTH_TOKEN_ALREADY_ACCEPTED | The specified auth token was already accepted. |
| 400 | AUTH_TOKEN_EXPIRED | The authorization token has expired. |
| 400 | AUTH_TOKEN_INVALID | The specified auth token is invalid. |
| 400 | AUTH_TOKEN_INVALIDX | The specified auth token is invalid. |
Gogram Example
// AuthImportLoginToken - positional arguments result, err := client.AuthImportLoginToken([]byte{}) if err != nil { // handle error } // result is *tg.AuthLoginToken