BotBarn documentation¶
BotBarn hosts Telegram bots. You bring the code, from a Git repository or an archive, and the token from @BotFather. BotBarn builds a container image, starts the bot, restarts it when it crashes and shows you its logs.
Sign in with Telegram, and manage your bots from the BotBarn app in Telegram, @botbarn_app: see Telegram. You can also sign up with email.
Each bot has its own plan, paid in Telegram Stars. A 30-day plan renews automatically every 30 days at the same price until you turn renewal off; other plans are charged once. See Payments and refunds.
Start here¶
- New to BotBarn? Follow Getting started: from sign-up to a bot that
answers
/start, in about five minutes. - Have a bot already? Read Preparing your code to see what BotBarn builds, and Polling or webhook for how your bot receives updates (webhook recommended).
- Want your AI to build it? With Claude, add BotBarn from the Claude connectors directory; for ChatGPT, Cursor or Claude Code see Build your bot with AI.
- Want something that works right away? Download an example bot.
- Something failed? Troubleshooting lists the errors BotBarn shows and what to do about each one.
How it works¶
- You create a bot in BotBarn and pay for its plan.
- You paste the bot's Telegram token. BotBarn checks it with Telegram and stores it as a secret.
- You connect code: a GitHub (or any HTTPS Git) repository, or a
.zip/.tar.gzarchive. - You press Deploy. BotBarn fetches the code, builds an image with your
Containerfile(or generates one for Python), and starts a container with your variables. - The bot runs in its own isolated container with the CPU and memory of its plan. If it crashes, BotBarn restarts it.