bots.exportBotToken #

Export the bot token of a managed bot »; can only be called by the manager bot.

Layer 223

Method schema is available as of layer 224. Switch »

Parameters #

NameTypeDescription
botInputUserThe managed bot to export the token for
revokeBoolIf boolTrue, revoke the current token and generate a new one

Result #

bots.ExportedBotToken

Only bots can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.
400USER_BOT_REQUIREDThis method can only be called by a bot.

boolTrue #

The constructor can be interpreted as a booleantrue value.

Managed bots #

Users can create managed bots (which are controlled by a specific manager bot) directly through the MTProto API, without interacting with @BotFather.