How to Host a Telegram Bot on a VPS
A Telegram bot needs to run 24/7, which your laptop can't do. A small VPS is the classic home for one — cheap, always-on, and yours. Here's the short path from zero to a live bot.
Pick a plan
Most bots are light. A 1 vCPU / 1 GB box is plenty to start; step up only if you run heavy workloads or a database alongside it.
Deploy the server
Create a server with Ubuntu, choose a location near your users, and you'll have a root shell in about 60 seconds. Pay in crypto — no card needed.
Install your runtime
For a Python bot:
apt update && apt install -y python3-pip
pip3 install python-telegram-bot
For Node:
apt update && apt install -y nodejs npm
Upload your code (git clone or scp) and confirm it runs.
Keep it alive with systemd
So the bot restarts on crash or reboot, create a service:
[Unit]
Description=My Telegram bot
After=network.target
[Service]
WorkingDirectory=/root/mybot
ExecStart=/usr/bin/python3 bot.py
Restart=always
[Install]
WantedBy=multi-user.target
Then:
systemctl enable --now mybot
Your bot now survives crashes and reboots.
Pay only for what you use
Because billing is hourly and prepaid, a tiny bot costs a few dollars a month, and you can destroy the server anytime to stop charges.
Get started
Deploy a bot host in ~60 seconds — crypto only, from $10/month.