auth.importBotAuthorization
Login as a bot
Example
TL schema
Parameters
Name | Type | Description |
flags | Reserved for future use | |
api_id | Application identifier (see. App configuration) | |
api_hash | Application identifier hash (see. App configuration) | |
bot_auth_token | Bot token (see bots) |
Result
Returns an auth.Authorization object with information on the new authorization.
Possible errors
Code | Type | Description |
400 | ACCESS_TOKEN_EXPIRED | Bot token expired |
400 | ACCESS_TOKEN_INVALID | The provided token is not valid |
400 | API_ID_INVALID | The api_id/api_hash combination is invalid |
401 | AUTH_KEY_INVALID | Auth key invalid |
Can bots use this methd ?
yes
Related pages
Last updated