getManagedBotToken

Get the token of a managed bot. BOT-ONLY

Parameters

userId: ID

The identifier of the bot user.

Result

string

The managed bot’s token.

Syntax

await client.getManagedBotToken(userId);