auth.importBotAuthorization
Login as a bot
| Name | Type | Required | Description |
|---|---|---|---|
flags | int | Yes | Reserved for future use |
api_id | int | Yes | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) |
api_hash | string | Yes | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) |
bot_auth_token | string | Yes | Bot token (see [bots](https://core.telegram.org/bots.md)) |
Responses
auth.Authorization
MTProto RPC
- 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.