- Rent a server in the Netherlands, Germany or Finland. Telegram's own servers are in Amsterdam, so a bot hosted nearby reaches them quickly and without dropouts.
- A first bot runs fine on a server with 1 GB of memory and one CPU core.
- A decent plan costs about $1.90 to $5 a month, which is roughly $22 to $60 a year. If you find something cheaper, check it against the five catches I describe below before you pay.
You can find plans for less than $1.75 a month, but they usually come with a catch. Most often you have to pay for a whole year up front, or the server has no IP address of its own, so Telegram cannot reach it. That is why they are not in the list above, and further down I will show you how to spot them yourself.
Why Europe? The address api.telegram.org, which every bot uses to talk to Telegram, belongs to Telegram's network in Amsterdam. A server next door gets new messages fast, without a long detour through other networks. The further away the server is, the longer each request travels, and the slower your bot feels. Servers in Russian data centres are a poor choice for the same job: their connection to Telegram is often unreliable, so requests hang and the bot misses messages or answers late.
If your bot collects names, phone numbers or addresses of people living in Russia, Russian law 152-FZ (Article 18, part 5) requires that data to be kept in a database on a server in Russia, so the bot can stay in Europe while that database runs in Russia.
What kind of bot do you have?
The bot itself needs very little memory. A simple bot on aiogram, the hungriest of the popular Python libraries, takes about 170 MB after start-up, and bots on grammY or python-telegram-bot take even less. So a gigabyte is plenty. What decides the plan size is everything else that runs on the server next to the bot: a database, a web server or a Mini App. A game server, by comparison, needs several times more: I worked out the cores and memory for CS2 in A CS2 server on a VPS.
A simple bot
This bot answers commands, sends notifications and reminders, and keeps its data in a plain SQLite file. It fetches new messages from Telegram itself by asking over and over whether anything has arrived (this is called long polling), so it does not need a domain.
- 1 vCPU
- 1 GB RAM
- 10 GB+ disk
- IPv4
While you are still testing the idea, hourly billing is the most convenient. If the server does not work out, you delete it and the charges stop. Make sure you actually delete the server rather than just switch it off, because many hosting providers keep charging for a server that is powered off.
A bot with a database
This is a shop, a booking bot, a survey bot or any other bot that needs a real database such as PostgreSQL or MySQL. Bots like this often run on a webhook: Telegram pushes each new message to your server, and the nginx web server receives it.
- 1–2 vCPU
- 2 GB RAM
- NVMe 20 GB+
- IPv4
A database needs far more memory than the bot. PostgreSQL reserves 128 MB for its cache straight away, and every new connection adds a little more. A bot and a database will fit into a gigabyte, but only just. When memory runs out, the system forcibly stops the biggest program, and either the bot or the database goes down. On cheap plans the step from 1 GB to 2 GB costs about $0.60 a month, or roughly $7.50 a year. I would pay it, because that is cheaper than bringing a crashed database back up in the middle of the night.
Broadcasts and Mini Apps
You need this option if the bot sends broadcasts to thousands of subscribers or has a Mini App, which is a small website that opens right inside Telegram. Bots like this usually run next to a task queue and Redis, a fast in-memory data store.
- 2 vCPU
- 4 GB RAM
- NVMe 40 GB+
- IPv4 and a domain
A more powerful server will not make a broadcast faster, because Telegram itself lets through about 30 messages per second. So 10,000 subscribers get the message in roughly six minutes on any server. The second core and 4 GB of memory are for something else. While a broadcast is running, the bot still has to answer people, and the database, Redis and the Mini App need enough memory not to get in each other's way.
Telegram opens a Mini App only over a secure HTTPS link, so you will need a domain and a free Let's Encrypt certificate. A self-signed certificate, which is enough for a webhook, will not do here. The page is opened by the user's phone, and the phone does not trust such a certificate.
If you only have a few hundred subscribers so far, start with 2 GB. I would move to a bigger plan when, at peak times, the free -h command shows less than 200 MB in the available column. The second sure sign shows up in the output of journalctl -k. If you see lines with oom-kill there, the system has already had to stop programs because it ran out of memory.
Data table
| Bot | Plans | Cheapest | One in four below | Median | Year, cheapest–median |
|---|---|---|---|---|---|
| Simple, 1 GB | 191 | $1.86 | $5.00 | $7.00 | $22–84 |
| With a database, 2 GB NVMe | 193 | $2.50 | $6.64 | $9.78 | $30–117 |
| Broadcasts, 4 GB · 2 vCPU | 211 | $2.99 | $10.73 | $15.99 | $36–192 |
I would pick from the dark part of each bar, which is the cheapest quarter of plans. For a simple bot that means up to about $5 a month, and for a bot with a database up to about $6.60. For broadcasts and Mini Apps the line sits higher, at around $10.70. Pricier plans usually charge extra for dedicated cores that you do not share with anyone, a large disk or a well-known hosting brand. A single bot almost never needs any of that.
Five catches hiding in cheap plans
The price on a hosting provider's website and your first bill often do not match. Before you pay, check the plan for these five catches. Under each one you will find the words that give it away on the plan's page. To see what servers with 1, 2, 4 or 8 GB of memory cost across the market, read VPS prices in 2026.
- You pay for a whole year up front
A price of “$0.86 a month” sometimes means you cannot pay monthly at all and have to hand over about $10.30 for the year at once. You do not lose the money, but the server is paid a year ahead, even if you no longer need the bot a month later.
How to spot it: next to the price you see “/12”, “billed annually” or “per year”. In the accsly.io catalogue such plans carry a “pay 12 months upfront” label. - A setup fee
Some providers charge a one-off fee for preparing your server. Take a plan at about $1 a month with a setup fee of about $20. In the first year it costs you around $32, while a $1.86 plan without such a fee costs about $22 a year.
How to spot it: the description mentions a “setup fee” or “one-time fee”, and the catalogue shows a “+ setup” note. - The server has no IP address of its own
This is how plans marked NAT work. Dozens of customers share one IP address, and each gets only a small range of high-numbered ports. A bot on long polling will work, because it contacts Telegram itself. A webhook, though, will only work if the provider opens one of the ports Telegram accepts for you: 443, 80, 88 or 8443. On a shared address you almost never get them, so you cannot run a Mini App on such a server either.
How to spot it: the plan name contains “NAT”, and the description mentions “shared IPv4”, “20 ports” or “port forwarding”. - Only a new-style IPv6 address
Such a server has no familiar IPv4 address. Telegram does not send webhooks to IPv6, so long polling is your only option. That will work, because api.telegram.org has an IPv6 address. GitHub, however, does not, so you will not be able to download code from github.com with
git clone.How to spot it: the name says “IPv6 only”, and IPv4 is sold as a separate add-on. In the catalogue such plans carry a “no IPv4” label. - The checkout total is higher than the price on the site
Many providers price their plans in euros, and the accsly.io catalogue converts every price into US dollars at the day's rate. Your bank or payment service will charge you at its own rate. If the price excludes VAT, the tax is added at checkout, and how much depends on the country you pay from. So always check the total on the last step of the payment. Typical prices by country are compared in How much does a VPS cost in 2026: median prices in 20 countries.
How to spot it: the price says “excl. VAT” or “+ VAT”, or it is shown in a currency other than the one you pay in.
Here is what these catches look like on real plans. Below are the cheapest 1 GB servers in the same six countries, and some of them already have no IP address of their own. The orange label in a row tells you which catch the plan has. They are common. In these countries alone the catalogue lists 49 plans with NAT in the name and 61 plans with IPv6 only.
How to get your bot running on a server in 15 minutes
I will show the setup on Ubuntu 24.04 for a bot written in Python with aiogram. If you write in Node.js with grammY, only steps 4 and 6 are different. Run every command as the administrator (root) unless the step says otherwise.
- Order the server
When you order, choose Ubuntu 24.04 as the system and a city close to Telegram, such as Amsterdam, Frankfurt or Helsinki. If the plan is sold in several countries, check which one is selected by default, so the server does not end up somewhere else by accident.
- Get a token
Send the
/newbotcommand to @BotFather, and it will give you a token. The token works like a password to your bot, so do not write it into your code and do not push it to Git. - Create a user for the bot
The bot will run as a separate user without administrator rights. If someone finds a hole in your code, they get access only to the bot, not to the whole server.
ssh root@SERVER_IP apt update && apt -y upgrade adduser --disabled-password --gecos "" bot - Install the runtime and the code
Install Python and the library, then paste the bot's code into a file. Below is a simple echo bot that replies with a copy of any message.
Python and aiogramapt install -y python3-venv su - bot python3 -m venv venv venv/bin/pip install aiogram nano bot.pyimport asyncio, logging, os from aiogram import Bot, Dispatcher from aiogram.types import Message dp = Dispatcher() @dp.message() async def echo(m: Message): await m.send_copy(chat_id=m.chat.id) logging.basicConfig(level=logging.INFO) asyncio.run(dp.start_polling(Bot(os.environ["BOT_TOKEN"])))Node.js and grammYapt install -y nodejs npm su - bot npm init -y && npm i grammy nano bot.jsconst { Bot } = require("grammy"); const bot = new Bot(process.env.BOT_TOKEN); bot.on("message", (ctx) => ctx.copyMessage(ctx.chat.id)); bot.start(); - Move the token into a separate file
Go back to the administrator account with
exitand write the token into its own file. Only root can read this file, and systemd, the service manager in Ubuntu, hands the token to the bot when it starts.nano /etc/bot.env # one line: BOT_TOKEN=123456:ABC… chmod 600 /etc/bot.env - Turn the bot into a systemd service
A service keeps the bot running without you. The line
Restart=alwaysrestarts the bot if it crashes, and theenablecommand in the next step starts it again after the server reboots (more in the systemd documentation). Create the file/etc/systemd/system/bot.servicewith this content.[Unit] After=network-online.target Wants=network-online.target [Service] User=bot WorkingDirectory=/home/bot EnvironmentFile=/etc/bot.env ExecStart=/home/bot/venv/bin/python bot.py # for grammY: ExecStart=/usr/bin/node bot.js Restart=always RestartSec=3 [Install] WantedBy=multi-user.target - Start the bot and open the log
Send the bot any message, and it will reply with a copy. At the same time a line appears in the log saying the bot has handled a new update.
systemctl daemon-reload systemctl enable --now bot journalctl -u bot -f - Check that it survives a reboot
Restart the server with
reboot, reconnect after a minute and typesystemctl status bot. If everything is fine, you will seeactive (running). The Memory line in the same output shows how much memory the bot really uses.
Polling or webhook: which one? With long polling the bot keeps asking Telegram for new messages, and with a webhook Telegram sends them to your server on its own. Start with polling, because it needs no domain, no certificate and no open ports, and it works even on a server without its own IP address. A webhook makes sense when the server already hosts a site with a domain, for example for a Mini App, or when you run several bots. It needs your own IPv4 address, HTTPS and one of the ports 443, 80, 88 or 8443 (setWebhook reference).
Run only one copy of the bot. If the bot is still running on your laptop, the server will get a Conflict error, so stop the old copy first. And if the server does go down, you have a day to fix it. Telegram keeps undelivered messages for 24 hours, and after that they are gone.
Prices come from hosting providers' websites and were converted at 80.54 RUB per US dollar (24.10.2026), so all dollar figures are approximate. The live plan lists update every hour, so their numbers may differ slightly from the ones in the text. The lowest prices and medians were calculated from the accsly.io catalogue on 24.10.2026, and the accsly.io team measured the bots' memory use on the same day.