What it costs to keep a Telegram or Discord bot online 24/7 on a VPS
What it costs per month to keep a Telegram or Discord bot running around the clock on a VPS, with official prices, and how to run it as a systemd service.

| Provider | Plan | Resources | Price | Terms | Link |
|---|---|---|---|---|---|
| DigitalOcean | Basic 512 MB | 1 vCPU · 512 MB · 10 GB SSD | $4/mo | Hourly, no contract | digitalocean.com |
| DigitalOcean | Basic 1 GB | 1 vCPU · 1 GB · 25 GB SSD | $6/mo | Hourly, no contract | digitalocean.com |
| Hetzner | CX23 | 2 vCPU · 4 GB · 40 GB NVMe | from €5.99/mo | Excl. VAT, hourly; out of stock when checked | hetzner.com |
| Hostinger | KVM 1 | 1 vCPU · 4 GB · 50 GB NVMe | $6.49/mo | 24-month term; renews at $11.99 | Hostinger |
Short answer
Keeping a bot online all month starts at $4 on DigitalOcean's smallest plan. For a little more, Hostinger KVM 1 gives 4 GB of RAM at $6.49 a month, enough for several bots at once, though it requires paying 24 months upfront.
Which plan to pick
A Telegram or Discord bot spends most of its time waiting for messages, so it usually fits the smallest plan. RAM starts to matter when the bot loads heavy libraries, keeps a lot in memory, or you run several on one server.
- One bot, to test: an hourly 512 MB or 1 GB plan.
- Several bots or a bot with a database: 4 GB.
We publish no exact usage figures because they depend on each bot's code: measure yours with free -h after starting it.
Keep it running with systemd
If you start the bot by hand, it stops when you close the session. The normal way on Linux is a service. Save this as /etc/systemd/system/mybot.service, adjusting the paths:
[Unit]
Description=My bot
After=network-online.target
[Service]
WorkingDirectory=/opt/mybot
ExecStart=/usr/bin/python3 /opt/mybot/bot.py
Restart=always
User=bot
[Install]
WantedBy=multi-user.targetThen enable it:
sudo systemctl daemon-reload
sudo systemctl enable --now mybotRestart=always makes systemd bring it back if it crashes, and enable starts it on its own after a reboot.
Common mistakes
- Running the bot as
root. Create a dedicated user for the service. - Keeping the token inside the code. Put it in an environment file only that user can read.
- Paying 24 months for a bot that is still an experiment.
What you pay in a year
With the official prices in the table:
- DigitalOcean Basic 512 MB: $4 a month, $48 a year.
- DigitalOcean Basic 1 GB: $6 a month, $72 a year.
- Hetzner CX23 (4 GB): from €5.99 a month, about €71.88 a year plus VAT.
- Hostinger KVM 1 (4 GB): $155.76 today for 24 months, which works out to $77.88 a year.
The first three are paid month by month and can be deleted at any time. Hostinger is the only one that asks for the money upfront, in exchange for more RAM at a similar price. For a bot that is just starting out, the sensible move is the $4 plan, switching when the bot grows.
Sources
Prices read on the official pages on November 10, 2026. They change often: confirm the final price in each provider's checkout.
Sources & References (3)
Share this guide with friends
Share directly via WhatsApp, Telegram, or X with verified technical preview.
Did you find this article interesting?
Your vote helps calibrate recommendations in the community.
Comments (0)
Recommended Reading

How to Fix Out of Video Memory and ERR_SYS_MALLOC in Unreal Engine 5: Pagefile Setup
Resolve Out of Video Memory errors and VRAM allocation crashes in Unreal Engine 5 PC games by optimizing Windows virtual memory pagefile.

How to Fix VCRUNTIME140.dll and MSVCP140.dll Missing Error in Windows 11 & 10
Official fix for 'The code execution cannot proceed because VCRUNTIME140.dll was not found': install Microsoft Visual C++ x86 and x64 redistributables.
