The short answer
A chat bot is a long-running worker. It holds an outbound connection or polls all day, and nobody visits it in a browser. General app platforms price and sleep around web traffic. A bot host prices for workers. Railway, Render and Fly.io are good platforms for web apps, but none has a free tier meant to keep a worker running all month. Bothosting’s free Spark plan does, with a manual renewal every 7 days, and its cheapest paid plan is $2.25 a month for 1 GB.
Free tiers and cheapest always-on option
| Provider | Free option for a worker | Cheapest always-on | Billing |
|---|---|---|---|
| Bothosting | Spark: 256 MB RAM, 25% CPU, 512 MB; renew every 7 days | Relay $2.25/month: 1 GB, 2 deployments | Flat monthly or yearly price |
| Railway | Free plan: $1 usage credit a month, 0.5 GB per service; services sleep after 5 to 10 minutes without outbound traffic | Hobby $5/month including $5 of usage | Usage: about $10 per GB of RAM and $20 per vCPU a month |
| Render | No free background workers. Free web services spin down after 15 minutes without inbound traffic | $7/month for 512 MB, 0.5 CPU | Per instance |
| Fly.io | No free plan. Trial: $1 credit for 7 days | shared-cpu-1x 256 MB about $2.19/month (US East) | Usage. Personal bills under $5 a month are waived |
Why bots go offline on web platforms
Render’s free tier wakes on an inbound HTTP request, but a Discord bot makes outbound connections only. Once a free web service spins down, the gateway connection drops and stays down. Railway’s $1 credit is less than a 0.5 GB service costs to run for a full month at its published memory rate. Fly.io can be very cheap for a 256 MB machine, but it needs a card after the trial, and you set it up with its CLI and a Dockerfile or launcher.
A webhook-based Telegram bot is different. It receives inbound HTTPS requests, so a sleeping web service wakes when a message arrives. The first reply after an idle period waits for the service to start. See polling or webhook for how to choose.
Which platform fits which project?
- Bothosting: Discord or Telegram bots, workers and small sites that should run all month at a fixed price, with a file manager, console and AI agent access.
- Railway: multi-service apps where usage billing and its GitHub workflow suit you.
- Render: web services and static sites, where the paid instance is worth it for a worker.
- Fly.io: developers comfortable with containers who want regional placement and pay-per-use machines.
For a first bot with no budget, start on Spark. Measure memory during a busy period before choosing a paid size anywhere.
About this comparison
This comparison is published by Bothosting (bothosting.dev), one of the providers compared. Figures for Railway, Render and Fly.io come from their public pages, read on 20 November 2026. They are not independent benchmarks. Check each provider’s current page, tax and checkout total before you buy.