Your Telegram bot, replying.
How do you build a Telegram bot, and what does it cost to have it built?
A bot needs no app store and no install. People open a chat and start.
Last updated:
Build it yourself.
These steps work whether you build it yourself or check what a developer does.
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.
Pick a library
Libraries like grammY for JavaScript or python-telegram-bot wrap the Bot API and save a lot of code.
Receive messages with a webhook
Telegram sends each new message to your server. Long polling is fine while you test on your own computer.
Commands and buttons
Commands like /start and /help, and inline buttons under messages, guide people without typing.
Store state per chat
A small database remembers where each person is in a conversation, so a restart loses nothing.
Add an admin view
A simple page or a private admin chat to change content and see who uses the bot.
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.
First version
€1,800 to €4,320
40 to 96 hours
Full version
€3,600 to €8,280
80 to 184 hours
Recommended stack
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 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.
- Telegram Stars for digital purchases.
What the estimate assumes
- 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.
First version, part by part
- Web app (browser): setup, basic screens, launch
- Hours
- 16 to 32
- Cost
- €720 to €1,440
- Admin panel
- Hours
- 16 to 40
- Cost
- €720 to €1,800
- Connection to one external tool
- Hours
- 8 to 24
- Cost
- €360 to €1,080
Hour ranges from Find My Stack as of November 24, 2026.
Change the parts in the calculatorExample milestones.
The first version split into steps you can check one by one. Each amount is its hours from the table above times 45. A developer sets the real milestones in a proposal.
- Example
1. Bot base and the Bot API
€1,080 to €2,520
24 to 56 hours
Webhook, commands, buttons and state per chat.
- Example
2. Admin view
€720 to €1,800
16 to 40 hours
Change content and see usage.
Post your project.
Project type, category and features of this page are filled in. You describe what your bot does in your own words.
Post your projectSee developers who build chat appsBuild these for clients? Join as a developer.
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.
Link to this answerBot 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.
Link to this answerDoes Telegram charge for bots?
Creating and running a bot is free. You pay for your own server and any services the bot uses.
Link to this answerCan 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.
Link to this answerRelated pages
- How to build a Slack botBuild 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 WhatsAppWhat 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 & messagingA messaging app needs to feel instant, which means real-time delivery, not just refreshing a page.
- Hire a Node.js developer for your serverNode.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 AIPython powers servers, data work and AI features. See what a Python developer builds, what to ask them and how a project is planned.
Telegram is a trademark of its owner. ErdiBuilds is not affiliated with Telegram.