FAQ¶
Which languages can I use?¶
Any language and any version that runs in a Linux container, with your own Containerfile. Python
works without one: BotBarn generates the image from main.py and requirements.txt (Python 3.14 by
default, or the version in a .python-version file).
Should my bot use a webhook or polling?¶
A webhook. Long polling works as an alternative: Polling or webhook.
Do I need a server, a domain or HTTPS?¶
No. BotBarn runs the bot. With long polling nothing is reachable from outside; with webhooks BotBarn gives your bot a public HTTPS URL.
Can one BotBarn bot run several Telegram bots?¶
Run one Telegram bot per BotBarn bot. A Telegram token can be connected to one BotBarn bot only.
Does my bot keep files between deploys?¶
Yes, in /data. Everything the bot writes there survives restarts, crashes and deploys; the rest of the filesystem
does not. The folder is as large as the bot's plan says, cannot run programs, and is deleted with the bot and 7 days
after the plan ends. Use SQLite (WAL mode) or plain files, and keep the files in the Data card of the bot's
Overview, where you can also download or reset them. /tmp and /var/tmp stay in memory and are lost at restart.
How do I download or empty my bot's data?¶
On the bot's Overview, in the Data card: Download prepares an archive (a link valid for one hour; a running
bot is paused for a moment while it is read) and Reset empties /data after you type the bot's name. Your AI
assistant can do both too.
Can my bot connect to a database?¶
Yes, to any database reachable on the public internet (for example a hosted PostgreSQL or Redis). Put
the connection string in a secret variable. For a small bot, a SQLite file in /data needs no server at all.
An image that runs its own database server and changes the owner of its data folder at start (the official
PostgreSQL image, for example) fails to start: a bot cannot chown.
Is the bot restarted if the server reboots?¶
Yes. Deployments that should be running are started again.
Does BotBarn redeploy when I push to GitHub?¶
No. Press Deploy when you want the new code live.
Can I see CPU and memory use?¶
Yes: open Usage from the bot's "⋯" menu. It shows the use of all five limits of the plan (CPU, memory, storage, bandwidth and monthly transfer) and warns you before one is reached.
What happens when my bot uses its monthly transfer?¶
It is slowed down to 1 Mbit/s in each direction (or to its plan's own bandwidth when that is lower) and keeps running. The month's transfer, the data the bot sends plus the data it receives, is counted from 00:00 UTC on the 1st. The bot speeds up again on the 1st, or as soon as you move it to a plan with more transfer than it used. You get a message in Telegram (or by email) at 80 % and when the transfer is used up. See Limits.
Is my bot's network speed limited?¶
Yes: each bot has the bandwidth of its plan in each direction, webhook traffic included. A bot at its limit gets its rate, not more; downloads and uploads are slowed, never refused. When its busiest hour of the last 7 days reaches 95 % of the rate, you get a message in Telegram (or by email), at most once a week, with the plan that fits.
How do I pay?¶
In Telegram Stars, inside the BotBarn app in Telegram: Pay with Telegram Stars. The free plan needs no payment.
Can I pay another way?¶
No. Paid plans are paid only in Telegram Stars.
Can I get a refund?¶
Yes, on request: ask through Help or send /paysupport to the BotBarn bot. The Stars go back to your Telegram balance and the plan they paid
for ends. See Payments and refunds.
Do I need Telegram to use BotBarn?¶
You can sign up with email. To pay for a plan you need a Telegram account, and the BotBarn app in Telegram is the quickest way to manage your bots.
Is my plan renewed automatically?¶
Yes, for 30-day plans: Telegram charges the same price every 30 days until you turn renewal off on the bot's Overview or in Telegram (Settings → My Stars → Subscriptions). See Automatic renewal.
What happens when my plan ends?¶
A plan whose renewal is off, or whose renewal payment failed, ends on its end date. The bot is stopped and cannot be started until you renew. Its code, variables and token stay.
Can I move a plan to another bot?¶
No. A plan belongs to the bot it was bought for.
Do I get a refund when I delete a bot?¶
No. The time left on its plan is lost.