Export the bot token of a managed bot »; can only be called by the manager bot.
Method schema is available as of layer 224. Switch »
| Name | Type | Description |
|---|---|---|
| bot | InputUser | The managed bot to export the token for |
| revoke | Bool | If boolTrue, revoke the current token and generate a new one |
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
The constructor can be interpreted as a booleantrue value.
Users can create managed bots (which are controlled by a specific manager bot) directly through the MTProto API, without interacting with @BotFather.