telegram api method · layer 229 · #2db873a9
auth.importWebTokenAuthorization
Login by importing an authorization token
definition
auth.importWebTokenAuthorization#2db873a9 api_id:int api_hash:string web_auth_token:string = auth.Authorization;
parameters
| name | type | description |
|---|---|---|
api_id | int | API ID |
api_hash | string | API hash |
web_auth_token | string | The authorization token |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | API_ID_INVALID | API ID invalid. |
| 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. |
| 400 | WEBAUTH_TOKEN_EXPIRED | The specified auth token has expired. |
history
present in layers 147, 149–229
| id | layers |
|---|---|
| #2db873a9 | 147 |
| #2db873a9 | 149–229 |