Telegram Bot VPS
Keep your Telegram bot online 24/7 on a small KVM VPS — location, sizing, polling vs webhooks, and a production setup with systemd or Docker.
- 24/7always online
- Python · Nodeany language
- HK · USlocations
- $5/mostarting price
At a glance
- A 1 Core / 2 GB VPS runs several bots comfortably.
- Use a US VPS if the bot calls ChatGPT, Claude or Gemini; Hong Kong for Asian users.
- Run the bot under systemd or Docker so it restarts after crashes and reboots.
Choosing a location
Telegram's Bot API works from both Hong Kong and the US. Choose by what else the bot talks to:
| If your bot… | Choose |
|---|---|
| calls ChatGPT, Claude or Gemini | US VPS (AI APIs are not available from Hong Kong) |
| serves Asian users or Hong Kong / China services | Hong Kong VPS |
| sends email notifications | US VPS (port 25 open) |
Polling or webhooks?
| Long polling | Webhooks | |
|---|---|---|
| Setup | No domain needed | Needs HTTPS on 443, 80, 88 or 8443 |
| Latency | Good | Best |
| Scaling | One process | Behind a reverse proxy, many workers |
| Best for | Small bots, quick start | Busy bots, multiple bots on one server |
Running a bot reliably with systemd
# /etc/systemd/system/mybot.service
[Unit]
Description=My Telegram bot
After=network-online.target
[Service]
User=bot
WorkingDirectory=/opt/mybot
ExecStart=/opt/mybot/venv/bin/python bot.py
EnvironmentFile=/opt/mybot/.env
Restart=always
[Install]
WantedBy=multi-user.target
Run systemctl enable --now mybot; check logs with journalctl -u mybot -f. Prefer containers? See Docker VPS.
How big a VPS does a bot need?
| Bot | Plan |
|---|---|
| A few simple bots | 1 Core / 2 GB |
| Bot + database + AI calls | 2 Cores / 4 GB |
| Media processing, thousands of chats | 4 Cores / 8 GB |
Security
- Keep the bot token in an environment file, never in your code or Git.
- Run the bot as a non-root user.
- Validate webhook requests with a secret token.
Acceptable use
Spam bots, mass messaging and scraping that breaks Telegram's terms are not allowed and will lead to suspension.
Setting up a webhook with Nginx
server {
listen 443 ssl;
server_name bot.example.com;
# ssl_certificate ... (issued with certbot)
location /tg/<secret-path> {
proxy_pass http://127.0.0.1:8080;
}
}
Register it with setWebhook using your HTTPS URL and a secret_token, and check the header X-Telegram-Bot-Api-Secret-Token in your app.
What every Telegram Bot VPS plan includes
- VPS: KVM virtualization with dedicated vCPU and RAM, deployed within seconds of payment.
- VPS control panel: self-service reboot, OS reinstall and a VNC console, 24/7.
- VPS guarantees: 3-day money-back guarantee and a 99.99% uptime SLA.
- VPS billing: monthly, quarterly (save 5%), semi-annual (save 10%) or annual (save 20%); code CLOUD takes 20% off the first month.
- Payments: VPS — USDT, Bitcoin, Alipay, PayPal, Stripe, credit cards and Cash App Pay.
- No KYC and no ICP filing: sign up with an email address.
- 24/7 support by ticket, usually answered within minutes.
How to order Telegram Bot VPS
- Test the network: ping the location’s test IP from your users’ location.
- Choose a plan and location, then an operating system or app image.
- Add IPv4 addresses or bandwidth if you need them, and apply code CLOUD for 20% off the first month.
- Pay — the VPS deploys within seconds.
- Log in over SSH or Remote Desktop with the details in your client area.
Before you buy: a quick checklist
- Where are most of your users — and have you pinged our test IPs from there, at peak time?
- Which operating system or image do you need, and is it available on the plan you picked?
- How much RAM does your stack really use? Size for peaks, not averages.
- Do you need extra IPv4 addresses or bandwidth? Add them at checkout.
- Does your use comply with our Acceptable Use Policy and the laws of the server’s location?
- Do you know the refund window — 3 days for VPS?
Recommended plans for Telegram Bot VPS
US VPS plans
All US VPS plansHong Kong VPS plans
All Hong Kong VPS plansTelegram Bot VPS FAQ
01Can I run several bots on one VPS?
Yes — give each its own systemd service or Docker container.
02Which language should I use?
Any: python-telegram-bot and aiogram (Python), grammY and Telegraf (Node.js) are all popular.