Skip to content
Prices and choosing4 min read

Free Telegram and Discord bot hosting: does it stay up 24/7

Short answer

Running a bot free 24/7 is technically possible but not guaranteed. Discord bots and Telegram bots using polling need a process that never stops, and free platforms like Render and Railway stop idle apps or cap you with a small credit. Free VMs from Oracle and Google stay on but you manage them, and Oracle may treat a lightly used server as idle and reclaim it. Free is fine for testing; a bot people rely on needs paid hosting.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. How a bot receives messages
  2. The free options and where they break
  3. The cheapest route for a free Telegram bot: a webhook
  4. Discord bots: why free is harder
  5. When free is enough
  6. When you need paid hosting
  7. On ArabyHost

“Will my bot run 24/7 for free?” has a technical answer before a price answer. It depends on how the bot receives messages: does it need a process that’s always running, or just a URL that receives requests? Then you pick the free service that fits, knowing where it will break.

How a bot receives messages

Method Used by Needs a persistent process?
Long polling (getUpdates) Telegram, the default in most libraries Yes, the bot keeps asking the server
Webhook (setWebhook) Telegram No, Telegram sends each update to an HTTPS URL
Gateway over WebSocket Most Discord bots Yes, an always-open connection
HTTP interactions Discord, commands only No, but it doesn’t receive general events like messages

Per the official Bot API documentation, Telegram’s two methods are mutually exclusive, and a webhook needs an HTTPS URL on port 443, 80, 88 or 8443.

The free options and where they break

According to their public pages in November 2026, figures in US dollars as shown:

Option Up 24/7? Where it breaks
Oracle Cloud Always Free Yes, a persistent Linux VM You manage it, and Oracle may reclaim it if CPU and network use stay under 20% for 7 days, which describes a small bot
Google Cloud Free Tier (e2-micro) Yes, a persistent VM US regions only; you manage it
Render (Free) No, web services spin down after 15 minutes without traffic Background workers aren’t free, so webhooks only, with a delayed first message
Railway (Free) Partly $1 a month of credit; services sleep after 5 to 10 minutes without outbound traffic
Fly.io (Free) Depends on credit $1 of credit with no card, $5 of usage a month once you add a card
PythonAnywhere (Beginner) No No always-on tasks on the free plan, and outbound internet to specific sites only
Your own computer While it’s on Power cuts, internet drops, restarts

These details may change, so check each official limits page before relying on it.

The cheapest route for a free Telegram bot: a webhook

If your bot only replies to messages, a webhook avoids the persistent-process problem:

  1. Deploy the bot as a small web app that accepts POST requests on a secret path like /tg/SECRET.
  2. Register the URL with Telegram:
curl "https://api.telegram.org/bot<TOKEN>/setWebhook?url=https://your-app.example/tg/SECRET"
  1. Check the status and the last error:
curl "https://api.telegram.org/bot<TOKEN>/getWebhookInfo"
  1. If you go back to polling, remove the webhook with deleteWebhook first, or you’ll hit 409 Conflict.

On a platform that sleeps, the first message after a quiet spell waits for the app to wake, which is acceptable for a personal bot.

Discord bots: why free is harder

Most Discord bots connect to the Gateway over WebSocket and stay connected to receive messages and events. If the app sleeps, the connection drops and the bot shows as offline. So you need a server that’s always on, and the realistic free options are a VM you manage or your own machine. Steps in the Discord bot guide.

When free is enough

  • You’re learning to build bots or trying a new library.
  • A personal bot or one for a group of friends, where occasional delays or downtime hurt no one.
  • A prototype before you run it for an audience.

When you need paid hosting

  • The bot serves customers, a store or a large community.
  • It must answer instantly at any time.
  • It stores data in a permanent database.
  • You don’t want to administer a Linux server, its updates and its security yourself.

On ArabyHost

The AI/Developer plans are paid and suit bots: SSH jailed in CageFS, Python 3.9 to 3.12 and Node.js 20 and 24, background workers kept alive with cron (a job that checks every minute and restarts the bot if it stopped), or a webhook app running through Phusion Passenger on your domain with free SSL. Steps in the Python Telegram bot guide and keeping a bot up 24/7.

The limits, plainly: no root, no Docker, no GPU, and per-account resource limits. Prices are in your currency and renew at your sign-up price; details on the pricing page.

FAQ

Why does my bot stop when I close the terminal?

The process is tied to the terminal session, so it ends when the session does. You need a process manager or a cron job that restarts the bot if it stops, or a service that runs it in the background.

What is the 409 Conflict error on a Telegram bot?

Two copies of the bot are polling for updates at once, or a webhook is set while you're using getUpdates. Stop the second copy or delete the webhook before polling.

Is a webhook better than polling on free hosting?

A webhook doesn't need an always-running process, since Telegram sends each message to your HTTPS URL. But if the app is asleep, the first message waits for it to wake, and the URL must use one of the ports Telegram supports.

Can I run the bot on my computer at home?

Yes, and that really is free, but it stops whenever the internet or power drops or the machine restarts. Fine for testing, not for a bot serving a large group.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.