Guides

Bots and Mini AppsUSER-ONLY

User Walkthrough 32 of 50

Users can start bots and open their mini apps.

Listing Owned Bots

getOwnedBots lists bots owned by the account.

const bots = await client.getOwnedBots();

Starting a Bot

startBot starts a bot with an optional deep link.

await client.startBot(botId, { deeplink: "help" });

Opening a Mini App

openMiniApp returns the information needed to open a bot’s mini app.

const miniApp = await client.openMiniApp(botId, chatId);