How to Create a Telegram Bot in 2026: BotFather, Bot Token and Chat ID (Step by Step)
Creating a Telegram bot takes about two minutes and costs nothing — Telegram gives you a bot account and an API key through an official bot called @BotFather. Making the bot actually do something useful is the part that takes thought. This guide covers both: creating the bot, getting the token and chat ID, running your first bot, and the no-code route.
In short: open @BotFather → send /newbot → choose a name and a username ending in "bot" → copy the token. Message your bot, then open api.telegram.org/bot<TOKEN>/getUpdates to find your chat ID. Keep the token secret.
Step 1: Create the Bot With BotFather
- In Telegram, search for @BotFather (look for the verified checkmark) and tap Start.
- Send
/newbot. - Enter a display name — for example "Acme Support".
- Enter a username that ends in "bot" — for example
acme_support_bot. - BotFather replies with your bot token.
Step 2: Understand and Protect Your Bot Token
The token looks like 123456789:AAH... — a number, a colon, and a long string. It's the password to your bot: anyone with it can control the bot.
- Never paste it in public code, screenshots or chats.
- Store it in an environment variable or secrets manager.
- If it leaks, send
/revoketo BotFather to generate a new one. - Lost it? Send
/mybots→ choose your bot → API Token.
Step 3: Find a Chat ID
Many tools — notification scripts, n8n, Make, monitoring alerts — ask for a chat ID to know where to send messages.
- Open your bot and send it any message (for groups, add the bot to the group and send a message there).
- In a browser, open:
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates - Find
"chat":{"id": ...}in the response — that number is the chat ID.
Private chat IDs are positive numbers; group and channel IDs are negative (supergroups and channels usually start with -100).
Step 4: Set Up the Bot's Profile
In BotFather, use these commands so users understand your bot:
/setdescription— text shown in an empty chat before users press Start./setabouttext— short text on the bot's profile./setuserpic— the bot's profile picture./setcommands— the command menu (for examplestart - Begin,help - Get help).
Step 5: Run Your First Bot (Python)
With Python 3 and the popular python-telegram-bot library (pip install python-telegram-bot), this replies "Hello!" to /start:
import os
from telegram.ext import ApplicationBuilder, CommandHandler
async def start(update, context):
await update.message.reply_text("Hello! I'm your new bot.")
app = ApplicationBuilder().token(os.environ["BOT_TOKEN"]).build()
app.add_handler(CommandHandler("start", start))
app.run_polling()
Set the BOT_TOKEN environment variable, run the script, and message your bot. To keep it running 24/7 you'll need hosting — see where to host a Telegram bot. And before you send messages to many users, read about Telegram Bot API rate limits.
Option: Create a Telegram Bot Without Coding
- No-code bot builders — drag-and-drop menus, auto-replies and simple forms.
- Automation platforms like n8n, Make and Zapier — send alerts to Telegram, or trigger workflows from messages. Compare them in n8n vs Zapier vs Make.
No-code works well for simple bots. It gets limiting when you need custom logic, payments, a database, an admin panel or many users.
When to Hire a Developer
| DIY / no-code is fine for… | A developer makes sense for… |
|---|---|
| Simple notifications and alerts | Taking payments (Stripe, crypto, Stars) |
| Fixed auto-replies | Shops, bookings and order management |
| Personal or small-group tools | Admin dashboards and databases |
| Prototypes | AI chatbots, integrations and CRMs |
| Bots serving thousands of users reliably |
Need a bot with payments, a dashboard, AI or integrations? Custom Telegram bots start from $100, with full source code and 30 days of free support.
The Bottom Line
Creating a Telegram bot is free and fast: BotFather gives you the bot and its token, getUpdates gives you chat IDs, and a few lines of Python make it respond. For simple tasks, that — or a no-code tool — is enough. When you need payments, data, dashboards or reliability at scale, that's when a custom build pays off. For ideas, see profitable Telegram bot ideas.
Frequently Asked Questions
Is it free to create a Telegram bot?
Yes. Creating a bot with @BotFather is free, and the Telegram Bot API has no usage fees. You only pay for hosting if your bot needs to run on a server, and for any paid services it connects to.
How do I get a Telegram bot token?
Open @BotFather, send /newbot, choose a display name and a username ending in 'bot', and BotFather replies with your token. You can get it again later with /mybots, and generate a new one with /revoke if it leaks.
How do I find my Telegram chat ID?
Send any message to your bot, then open the getUpdates address in a browser: api.telegram.org/bot followed by your token, then /getUpdates. The 'chat' object in the response contains the 'id'. Group and channel IDs are negative numbers.
Can I create a Telegram bot without coding?
Yes. No-code bot builders and automation platforms like n8n, Make or Zapier can run simple bots and connect them to other apps. For custom logic, payments, databases or large audiences, a coded bot is more flexible.
When should I hire a Telegram bot developer?
When your bot needs payments, a database, an admin dashboard, integrations, AI, or has to serve many users reliably. Simple custom bots start from around $100.