Shared Compute - General Compute
$5.00/mo
1 vCPU · 1 GB · 20 GB
Choose location
Ashburn, United States
Bots and messaging
A Telegram bot has to be online whenever someone writes to it. A laptop sleeps and a home connection drops, so most people move the bot to a small virtual server. With NodeRings you compare live plans from independent providers, pick one, and get a server with root access that keeps your bot running 24/7.
Most bots are light. A single Python or Node bot that talks to Telegram uses very little memory, so a 1 vCPU, 1 GB plan is a sensible start.
Recommended start: 1 vCPU, 1 GB RAM · from $5.00/mo on live plans
Live marketplace offers
These are live offers that meet the size you pick. Prices and regions come from the providers and change when they do.
What are you running?
A polling bot sits idle most of the time. One gigabyte leaves room for the system, your bot and updates.
1 provider
See live prices, sizes and regions from several independent providers in one list, then deploy on the one you choose.
Install Python, Node or anything else. Your bot, your token and your logs stay on your server.
Pick a fixed monthly plan for a bot that runs for good, or an hourly plan to test an idea and delete it when you are done.
Create it from the console, from Terraform or OpenTofu, or by asking an AI assistant over MCP.
Plans list their city and country, so you can choose where the bot runs.
A bot on a VPS is a normal process. If you move away, you take it with you.
Start small, then watch memory. These are starting points, not guarantees.
| Workload | Start with | Note |
|---|---|---|
| One polling bot, commands and replies | 1 vCPU, 1 GB | The bot waits on the network almost all the time. |
| Webhook bot behind HTTPS | 1 vCPU, 1 GB | You need a domain name and a certificate. Caddy or Nginx can do both. |
| Bot that calls a hosted AI API | 1 vCPU, 2 GB | Your server forwards text. The model runs elsewhere. |
| Bot that processes images or audio | 2 vCPU, 4 GB | Media libraries and temporary files need memory and disk. |
| Several bots and a small database | 2 vCPU, 4 GB | Give each bot its own service and its own settings file. |
Numbers depend on your code and traffic. Check memory with htop after a day of real use.
A polling bot asks Telegram for new messages in a loop. It needs no open port and no domain, so it is the easiest way to start.
A webhook bot waits for Telegram to call your server over HTTPS. It needs a domain name and a certificate, and it copes better when many people write at once. The quickstart below uses polling. You can switch to a webhook later without changing your plan.
If you would rather click than code, these apps install on a Compute Instance for you.
About ten minutes. You need a Telegram account and an SSH key.
Open a chat with BotFather, send /newbot, and follow the prompts. BotFather replies with a token. Treat it like a password.
In the plans section, choose Deploy on a plan that fits. Pick Ubuntu 24.04, add your SSH key, and confirm. A default payment method is required.
Log in as root, then create a system user and a virtual environment for the bot.
ssh root@YOUR_SERVER_IP
apt update && apt install -y python3-venv
useradd --system --create-home --home-dir /opt/telegram-bot --shell /usr/sbin/nologin bot
sudo -u bot python3 -m venv /opt/telegram-bot/.venv
sudo -u bot /opt/telegram-bot/.venv/bin/pip install python-telegram-bot==22.8Create /opt/telegram-bot/bot.py with the code below, and make the bot user own it.
import os
from telegram import Update
from telegram.ext import Application, CommandHandler, ContextTypes
async def start(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
await update.message.reply_text("Hello from my VPS.")
def main() -> None:
app = Application.builder().token(os.environ["BOT_TOKEN"]).build()
app.add_handler(CommandHandler("start", start))
app.run_polling()
if __name__ == "__main__":
main()nano /opt/telegram-bot/bot.py
chown bot:bot /opt/telegram-bot/bot.pyPut the token in a file that only root can read, as one line: BOT_TOKEN= followed by your token. systemd reads it and passes it to the bot.
nano /etc/telegram-bot.env
chmod 600 /etc/telegram-bot.envSave the unit below as /etc/systemd/system/telegram-bot.service, then enable it and follow the log.
[Unit]
Description=Telegram bot
After=network-online.target
Wants=network-online.target
[Service]
User=bot
WorkingDirectory=/opt/telegram-bot
EnvironmentFile=/etc/telegram-bot.env
ExecStart=/opt/telegram-bot/.venv/bin/python bot.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.targetsystemctl daemon-reload
systemctl enable --now telegram-bot
journalctl -u telegram-bot -fSend /start to your bot in Telegram. It should answer "Hello from my VPS." The service restarts after a crash and starts again after a reboot.
Prefer code? This creates the same server. Set your API token in the environment as the provider docs describe, run terraform init and terraform apply (OpenTofu works the same), then continue from step 3.
terraform {
required_providers {
noderings = {
source = "noderings/noderings"
}
}
}
# An SSH key you added under Orchestration > SSH Keys, by its name.
data "noderings_ssh_key" "laptop" {
name = "laptop"
}
# A location the plan list shows for this plan, for example in terraform.tfvars.
variable "country" {
type = string
}
variable "city" {
type = string
}
data "noderings_marketplace_offer" "server" {
plan_code = "SC-GC-1C-1G-20"
country = var.country
city = var.city
billing_type = "usage"
}
resource "noderings_virtual_machine" "server" {
hostname = "telegram-bot"
plan_id = data.noderings_marketplace_offer.server.plan_id
region_id = data.noderings_marketplace_offer.server.region_id
distro = "ubuntu_24_04"
ssh_key_ids = [data.noderings_ssh_key.laptop.id]
tags = ["bot"]
}
output "ip" {
value = noderings_virtual_machine.server.ipv4
}Set country and city to a location the plan list above shows for this plan, and the key name to an SSH key already in your account. Keep your API token in the environment, never in the file.
Connect the NodeRings MCP server to your assistant, then ask:
Find the cheapest hourly Ubuntu 24.04 server with 1 vCPU and 1 GB RAM, show me the offer and the price, and create it with my SSH key when I say yes.The NodeRings MCP server can search plans and create servers. It cannot run commands on the server, so install the bot yourself over SSH.
Acceptable use is covered in section 6 of the Terms of Service. Read the Terms of Service
A small bot runs on the smallest plan in the list. The plans section shows the live price from each provider, monthly and hourly where offered.
Not for a polling bot. A webhook bot needs a domain and an HTTPS certificate because Telegram only calls secure addresses.
Either works. python-telegram-bot and aiogram are popular for Python, and grammY and Telegraf for Node. The server only needs the runtime you pick.
Yes. Telegram documents limits on how fast a bot can send, per chat and overall. Add a small queue if you broadcast to many people, and check Telegram's bot FAQ for the current figures.
Keep it out of your code and out of git. Store it in a root-only file as in the quickstart. If it leaks, send /revoke to BotFather and update the file.
Yes. Give each bot its own folder, its own service and its own settings file. Watch memory as you add bots.
The systemd service starts the bot again at boot, and restarts it five seconds after a crash.
Pick a plan, deploy, and send your first message.