startBot

Start a bot. User-only.

Parameters

botId: number

The identifier of the bot to start.

A deeplink to follow.

chatId?: ID

If specified, the bot will be started in that chat instead of its own private chat.

Result

The start message.

Syntax

// Required parameters only.
await client.startBot(botId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.startBot(botId, { deeplink, chatId });