telegram api method · layer 229 · #67a3ff2c
auth.importBotAuthorization
Login as a bot
definition
auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;
parameters
| name | type | description |
|---|---|---|
flags | int | Reserved for future use |
api_id | int | Application identifier (see. App configuration) |
api_hash | string | Application identifier hash (see. App configuration) |
bot_auth_token | string | Bot token (see bots) |
returns
errors (5)
| code | error | description |
|---|---|---|
| 400 | ACCESS_TOKEN_EXPIRED | Access token expired. |
| 400 | ACCESS_TOKEN_INVALID | Access token invalid. |
| 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. |
history
present in layers 46–229
| id | layers |
|---|---|
| #67a3ff2c | 46–229 |