bots.exportBotToken
Export the bot token of a managed bot »; can only be called by the manager bot.
Export the bot token of a [managed bot »](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot); can only be called by the manager bot.
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
bot | InputUser | أيوه | The managed bot to export the token for |
revoke | Bool | أيوه | If [boolTrue](https://core.telegram.org/constructor/boolTrue.md), revoke the current token and generate a new one |
الردود
bots.ExportedBotToken
MTProto RPC
- 400 · BOT_INVALID — This is not a valid bot.
- 400 · USER_BOT_REQUIRED — This method can only be called by a bot.