ServerCalc
Reviews

How much RAM does a Telegram bot need? 1, 2 and 4 GB VPS plans priced

A minimal Telegram bot uses 41 to 165 MB of RAM. 1 GB runs one bot, 2 GB adds PostgreSQL, 4 GB fits several bots: $1.33 to $17.27 a month.

November 23, 2026ServerCalc Editorial11 min read

A Telegram bot needs 1 GB of RAM on a VPS when it runs alone with SQLite, 2 GB once PostgreSQL or Redis shares the server, and 4 GB for several bots or a local Bot API server. In our test on November 23, 2026, a minimal bot used 41 MB on python-telegram-bot, 54 MB on grammY and 165 MB on aiogram. In our catalog a 1 GB plan costs $1.33 a month on a yearly term, 2 GB $3.00 and 4 GB $4.00, prices checked November 15 to 22, 2026.

A minimal bot uses 41 to 165 MB of RAM, depending on the library

Telegram publishes no hardware requirements for bots, so we measured four popular libraries ourselves. Each bot had one text handler and a placeholder token; we read the resident memory (RSS) of the process after start-up and took the median of five runs on x86_64 Linux.

Library Runtime RAM after start-up
python-telegram-bot 22.8 Python 3.13 41 MB
grammY 1.48 Node.js 22 54 MB
Telegraf 4.16 Node.js 22 54 MB
aiogram 3.34 Python 3.13 165 MB

An empty Python interpreter took 11 MB and an empty Node.js process 35 MB. Of aiogram's 165 MB, 164 MB are already taken after import aiogram, before the bot object exists, so its higher floor is a fixed cost and not a leak. These are start-up numbers: user sessions, caches and queued jobs add to them under real traffic, so treat the table as the floor, not the budget.

1 GB runs one bot with SQLite and long polling

Take a hypothetical support bot for 5,000 users that answers questions, stores tickets in SQLite and fetches updates with long polling. Even on aiogram it leaves more than 700 MB of a 1 GB server for the operating system, logs and growth. One vCPU is enough: the bot waits for an event, replies and waits again.

Long polling also forgives short outages. The Bot API keeps undelivered updates on Telegram's side, but "they will not be kept longer than 24 hours", so a reboot or a crashed process costs nothing if you are back within a day. Set up a process manager such as systemd to restart the bot automatically.

In our catalog, RackNerd KVM 1 GB costs $15.98 for 12 months in New York, Los Angeles, Dallas or Seattle. Fornex Cloud NVMe 1 is $6.33 a month (€5.50) with NVMe in Frankfurt, Rotterdam, Falkenberg or Barcelona, for users in Europe. More options: cheapest 1 GB VPS.

2 GB is the working size once PostgreSQL and webhooks join

PostgreSQL's documentation sets shared_buffers to 128 MB by default and suggests 25% of memory as a starting value on a dedicated database server. Add an nginx proxy for HTTPS webhooks and an aiogram process, and a 1 GB server has no room left for a traffic spike. That is why the VPS for a Telegram bot page sizes a bot with a database at 2 GB.

Bot setup RAM Plan, location vCPU / disk Price a month
One bot, SQLite, long polling 1 GB RackNerd KVM 1 GB, USA 1 / 20 GB SSD $1.33 ($15.98 a year)
MassiveGRID Starter, New York, London, Frankfurt or Singapore 1 / 32 GB NVMe $3.99
Fornex Cloud NVMe 1, Frankfurt, Rotterdam, Falkenberg or Barcelona 1 / 10 GB NVMe $6.33 (€5.50)
Bot with PostgreSQL or Redis, webhooks 2 GB RackNerd KVM 2 GB, USA 2 / 35 GB SSD $3.00 ($35.99 a year)
Hostman Cloud 3, Europe or New York 2 / 60 GB NVMe $7.00
Fornex Cloud NVMe 2, the same four European cities 1 / 20 GB NVMe $8.64 (€7.50)
Several bots, media, local Bot API server 4 GB RackNerd KVM 4 GB, USA 4 / 60 GB SSD $4.00 ($47.98 a year)
Hostman Cloud 4, Europe or New York 2 / 80 GB NVMe $10.00
Fornex Cloud NVMe 4, the same four European cities 2 / 40 GB NVMe $17.27 (€15.00)

RackNerd prices are monthly equivalents of a 12-month term paid up front; the other plans bill monthly. Fornex prices are set in euros, so the dollar figure moves with the exchange rate. Want the list filtered for this workload? Open the calculator with the Telegram bot task: it sorts plans by price and location. See also the cheapest 2 GB VPS.

Webhooks need a public IPv4 address and one of four ports

Telegram's webhook guide is strict: the supported ports are 443, 80, 88 and 8443, "IPv6 is currently not supported for webhooks", and a certificate "can either be verified or self-signed". setWebhook accepts 1 to 100 simultaneous connections and defaults to 40. You cannot mix modes: long polling stops working while a webhook is set.

This decides the plan, not only the setup. Hostman cloud plans are listed in our catalog without an IPv4 address, and our Fornex listing does not state it, so confirm a public IPv4 at checkout if you plan webhooks. With long polling the bot only makes outgoing requests and needs no open port. What an extra address costs is in IPv4 address cost 2026.

Telegram caps broadcasts at about 30 messages a second, not your server

The Bots FAQ sets three limits: about one message per second in a single chat, 20 messages per minute in a group, and about 30 messages per second for a bulk broadcast. At 30 per second, a newsletter to 5,000 users takes about 3 minutes and one to 100,000 users about 56 minutes, whatever the server.

Paid broadcasts raise the ceiling to 1,000 messages per second at 0.1 Stars for each message above the free 30, but only for bots with at least 100,000 Stars on balance and 100,000 monthly active users. For everyone else, more cores do not send faster: put the money into RAM and backups instead. On choosing a nearby location, see server location and latency.

4 GB pays off for several bots, media and a local Bot API server

Through the cloud Bot API a bot sends files up to 50 MB and downloads up to 20 MB. A self-hosted local Bot API server lifts that to 2,000 MB uploads and downloads "without a size limit", allows any webhook port and up to 100,000 webhook connections. It is one more process on the server, and the files land on your disk.

A hypothetical agency running three client bots in Docker with a shared PostgreSQL, Redis and a local Bot API server fits on 4 GB with 2 vCPU. Disk becomes the next limit: a bot that stores videos fills 40 GB faster than it fills RAM, so check NVMe vs SSD and the cheapest 4 GB VPS.

Ready to pick a server? Compare plans on VPS for a Telegram bot, or rent a tier for a day on a VPS with hourly billing before paying for a year. Fornex has no hourly billing but refunds in full within the first 7 days; details on the Fornex page.

Frequently asked questions

How much RAM does a Telegram bot need?

In our test a minimal bot used 41 MB on python-telegram-bot, 54 MB on grammY and Telegraf, and 165 MB on aiogram. On a VPS, plan 1 GB for one bot with SQLite, 2 GB with PostgreSQL or Redis, and 4 GB for several bots.

Is a 1 GB VPS enough for a Telegram bot?

Yes for one bot with SQLite and long polling, even on aiogram. Move to 2 GB when a database server, an HTTPS proxy for webhooks or image processing runs on the same machine.

Does a Telegram bot need a public IPv4 address?

For webhooks, yes: Telegram does not support IPv6 for webhooks and accepts only ports 443, 80, 88 and 8443. With long polling the bot makes only outgoing requests.

How fast can a Telegram bot send a broadcast?

About 30 messages per second for free, so 5,000 users take about 3 minutes. Paid broadcasts reach 1,000 per second for bots with 100,000 monthly active users and 100,000 Stars.

How much does a VPS for a Telegram bot cost?

In our catalog: $1.33 a month for 1 GB and $3.00 for 2 GB on a yearly term, $7.00 for 2 GB billed monthly with NVMe, and $10.00 for 4 GB billed monthly.

Read also

Plan prices, CPU, disk and locations come from our catalog, checked on each provider's pricing page between November 15 and 22, 2026. Memory figures are our own measurement on November 23, 2026. Limits for webhooks, broadcasts, files and stored updates are from Telegram's Bots FAQ, webhook guide and Bot API documentation at core.telegram.org (Bot API 10.3), and PostgreSQL defaults from the PostgreSQL 18 documentation, all checked November 23, 2026.

Provider from this article

Fornex

plans in our base from $6.33 / month

This is an affiliate link: if you sign up, we earn a commission. The price for you does not change. Fornex is a partner of the service and gets a 10-point bonus in the «Best match» sort, as described in the methodology