StackMivo
StackMivo
Integrations

Telegram Bot

Connect a Telegram bot to chat with StackMivo's AI assistant from anywhere: generate apps and send follow-up prompts directly from Telegram.

StackMivo can be connected to a Telegram bot, letting you interact with the AI assistant and your projects directly from Telegram, without opening a browser.

Setting up your Telegram bot

Step 1: Create a bot with BotFather

  1. Open Telegram and search for @BotFather
  2. Send the command /newbot
  3. Follow the prompts: choose a display name, then a username (must end in bot, e.g. mylarabot)
  4. BotFather responds with your bot API token. Copy it

Step 2: Pair the bot with StackMivo

  1. In StackMivo, go to Telegram Bot in the sidebar
  2. Paste your bot API token in the input field
  3. Click Pair Bot
  4. If pairing succeeds, the page shows your bot's name and username with a Connected status

Using your Telegram bot

The bot is much more than a Q&A assistant: you can create new projects and keep building existing ones entirely from Telegram. It acts on behalf of the account that paired it, using your current team and its credits.

Once paired, open Telegram, search for your bot by its username, and send /start.

Commands

CommandWhat it does
/startShows who you're connected as, your team, plan, and credit balance
/helpLists all available commands
/newproject <prompt>Creates a new project from your prompt (you can also send /newproject alone and the bot will ask for it)
/projectsLists your 10 most recent accessible projects with a button to select each
/teamShows your team, role, plan, seat usage, and members — with buttons to switch teams
/planShows your plan details: price, monthly credits, available credits, project and seat limits, and subscription status
/statusShows your current session info (user, bot, team, plan, credits)

Creating a project from Telegram

Send /newproject followed by your app description. If you belong to more than one team, the bot first asks which team the project should belong to.

The bot posts a live progress bar while your container is provisioned (this can take a few minutes). When it's ready, the new project automatically becomes your active project and the bot shares its preview URL — from then on, anything you type is sent to the AI as a build prompt for it.

The same rules as the web app apply: your team must have credits available, be under its project limit, and not be suspended. If you're out of credits or at your project limit, the bot replies with a link to the Plans page.

Building on an existing project

  1. Send /projects and tap the project you want to work on. It becomes your active project (the bot switches your current team automatically if the project belongs to a different one).
  2. Type any message — no command needed. It's sent to the AI as a real follow-up prompt, exactly like typing in the IDE chat.
  3. The bot streams the AI's response, lists the files that were created or modified, and ends with your project's preview URL.

AI messages sent from Telegram consume team credits, the same as prompts in the web app.

Credits can't be purchased from inside Telegram. When your balance runs out, the bot links you to the Plans and Credits pages in the web app.

Bot status

The Telegram Bot page shows three status cards:

CardDescription
StatusActive or Inactive: whether the bot responds to messages
Last ActivityWhen a user last sent a message to the bot
Paired DateWhen the bot was connected to StackMivo

Activating and deactivating the bot

  • Click Activate to turn the bot on; it will respond to Telegram messages
  • Click Deactivate to pause it; the bot won't respond until reactivated

This is useful if you want to temporarily disable the bot without unpairing it.

Unpairing the bot

  1. Click Unpair Bot
  2. Confirm with Yes, Unpair

The bot is disconnected from StackMivo. The bot itself (in Telegram) still exists. You would need to delete it via BotFather if you no longer need it.

Webhook setup (server-side pairing)

If your StackMivo server cannot reach Telegram's API directly (e.g. due to firewall restrictions), you'll see a Webhook Setup Required warning after pairing.

To fix this:

  1. Click Register Webhook. This opens a Telegram API URL in a new tab
  2. The page should display {"ok":true}. This confirms the webhook is registered
  3. Your bot is now fully operational

If you don't see {"ok":true}, check that your server's outbound traffic to api.telegram.org is not blocked.

Troubleshooting

ProblemSolution
"Failed to pair bot"Double-check the API token from BotFather
Bot doesn't respondCheck that the status is Active on the Telegram Bot page
Webhook Setup Required bannerFollow the webhook registration steps above
Bot responds slowlyThis is normal: AI responses take a few seconds

On this page