# Your Telegram bot, replying.

> How do you build a Telegram bot, and what does it cost to have it built?

Canonical: https://erdibuilds.app/build/how-to-build-telegram-bot
Last updated: 2026-11-26 (November 26, 2026)

A bot needs no app store and no install. People open a chat and start. The hours and amounts on this page come from Find My Stack, a free planning tool. Find My Stack has no page for a Telegram bot, so ErdiBuilds picked the parts from its calculator. A quote from a developer replaces them.

## Build it yourself

These steps work whether you build it yourself or check what a developer does.

1. Create the bot with BotFather: BotFather is the official bot that creates bots. It gives you the name, the username and the token. Keep the token secret.
2. Pick a library: Libraries like grammY for JavaScript or python-telegram-bot wrap the Bot API (The HTTP interface Telegram offers for bots.) and save a lot of code.
3. Receive messages with a webhook: Telegram sends each new message to your server. Long polling is fine while you test on your own computer.
4. Commands and buttons: Commands like /start and /help, and inline buttons under messages, guide people without typing.
5. Store state per chat: A small database remembers where each person is in a conversation, so a restart loses nothing.
6. Add an admin view: A simple page or a private admin chat to change content and see who uses the bot.
7. Plan payments: Digital goods and services inside a bot are paid in Telegram Stars. Physical goods can use payment providers.

## The hard part

### A webhook that never stops

If your server is down, messages wait and then arrive in a burst. Answer fast, do slow work in the background and handle a message twice without harm.

### Sending to many people

Telegram limits how many messages a bot may send per second. A broadcast to all users is queued and sent in batches.

### Spam and misuse

A public bot gets spam and strange input. Limit requests per user and never pass input straight into a database query.

## Rather have it built?

An estimate from Find My Stack: one developer working with AI tools, at 45 per hour. Your real price comes with the proposals. 45 per hour is the example rate Find My Stack starts with. It is the same number in euros or US dollars. The region of the developer is not part of the estimate, and rates differ by country and experience.

Find My Stack has no page for a Telegram bot. The stack below follows the result its quiz gives for a web app.

- Node.js (JavaScript on the server.) with grammY, or Python with python-telegram-bot.
- A server or serverless host with a public HTTPS address for the webhook.
- A database for chats and state, for example Supabase (An open source backend with a Postgres database, user login and file storage.).
- Telegram Stars for digital purchases.

**Estimate for one developer who works with AI tools**

|  | Hours | Cost at 45 per hour |
| --- | --- | --- |
| First version | 40 to 96 hours | €1,800 to €4,320 |
| Full version | 80 to 184 hours | €3,600 to €8,280 |

Find My Stack has no page for a Telegram bot, so ErdiBuilds picked the parts from its calculator. The calculator has no option for bots, so its browser platform is the closest base. First version: the connection to the Bot API and an admin area. Full version: plus payments, AI answers and more languages. Not counted: a Mini App inside Telegram and group moderation. The calculator has no entry for them, so a full version with them costs more.

## Example milestones

1. Example: Bot base and the Bot API, 24 to 56 hours, €1,080 to €2,520. Webhook, commands, buttons and state per chat.
2. Example: Admin view, 16 to 40 hours, €720 to €1,800. Change content and see usage.

Build these for clients? [Join as a developer](https://erdibuilds.app/signup?role=developer).

Telegram is a trademark of its owner. ErdiBuilds is not affiliated with Telegram.

## Good to know

### How long does it take to build a Telegram bot?

40 to 96 hours of work for the first version. Your developer gives you the real timeline in the proposal.

### Bot or Mini App?

A bot talks in messages and buttons. A Mini App opens a full web page inside Telegram. Many projects start as a bot and add a Mini App later.

### Does Telegram charge for bots?

Creating and running a bot is free. You pay for your own server and any services the bot uses.

### Can the same bot run on WhatsApp?

Not as it is. WhatsApp has its own business API with its own rules and costs. The logic can be shared.

## Related

- [How to build a Slack bot](https://erdibuilds.app/build/how-to-build-slack-bot): Build a Slack bot step by step: the Slack app, scopes, events, slash commands and install for other teams. Or have it built, with an estimate.
- [An app like WhatsApp](https://erdibuilds.app/build/app-like-whatsapp): What the first version of an app like WhatsApp needs, why delivery and encryption are hard, and an estimate of hours and cost from Find My Stack.
- [Chat & messaging](https://erdibuilds.app/build/chat-messaging): A messaging app needs to feel instant, which means real-time delivery, not just refreshing a page.
- [Hire a Node.js developer for your server](https://erdibuilds.app/hire/nodejs): Node.js runs the server side of apps and APIs. Learn what a Node.js developer builds, what to ask and how milestones and matching work.
- [Hire a Python developer for data and AI](https://erdibuilds.app/hire/python): Python powers servers, data work and AI features. See what a Python developer builds, what to ask them and how a project is planned.
