Create your own Telegram bot with @BotFather: pick a name and username, get your token, set a description and commands, and keep the token safe.
To create a Telegram bot, open the official @BotFather bot, send it the /newbot command, and choose a name and a username ending in "bot". BotFather then gives you a token, a secret key your program uses to control the bot. Creating the bot takes a few minutes; making it do something useful is the next step.
This guide walks through creating the bot, setting it up properly, and keeping it secure.
@BotFather is Telegram's own bot for creating and managing bots. Every Telegram bot, whether it is a huge service or a small hobby project, was registered through it.
You talk to BotFather the same way you talk to any bot: by sending commands and tapping buttons. It can create new bots, change their names and pictures, set their command lists, and issue or revoke tokens. Telegram has also been adding a more visual interface to BotFather, so you may see menus and buttons as well as text commands. The exact layout can change, so follow what your app shows you.
Scammers create look-alike accounts with similar names. The genuine BotFather has the username @BotFather exactly and carries Telegram's verification mark. Type the username yourself in search rather than following a link from a stranger.
You need only a Telegram account. Still, a little planning saves time.
At this point the bot exists, but it will not answer anyone yet. It replies only once a program is running with its token.
A bot with no description or picture looks unfinished and less trustworthy. BotFather lets you fill in several details. You can usually reach these by sending /mybots, choosing your bot, and opening its settings.
There are two pieces of text worth writing:
Plain, specific wording works best. Say what the bot does, who runs it, and how to get help.
Upload a clear, simple image. A recognisable picture helps people confirm they found the right bot, especially if it belongs to a known channel or brand.
You can register a list of commands with short descriptions. Telegram then shows them in a menu when users type a slash. A good starting set is:
Keep commands short and lowercase. Registering them in BotFather only shows them in the menu; your program still has to handle each one.
BotFather has more settings than most people need at first. A few matter early.
By default, a bot added to a group only receives messages addressed to it, such as commands and replies to its messages. This is called privacy mode. Some bots, like moderation tools, need to see every message, so their developers turn privacy mode off in BotFather. A bot that is an admin in a group generally receives all messages anyway.
Leave privacy mode on unless your bot truly needs everything. It protects members and reduces the data you handle.
You can control whether your bot may be added to groups at all. If your bot is meant only for private chats, turning this off avoids confusion.
If you want people to use your bot from any chat by typing its username, you enable inline mode in BotFather. Our guide to inline bots covers how that works.
BotFather is also where developers connect a Mini App to their bot and set up payment options. Read Telegram Mini Apps Explained and Telegram Bot Payments and Stars for Developers before using these.
The token is what links your code to the bot. In general terms, the program does this:
Telegram publishes official documentation for the Bot API. Many programming languages also have community libraries that handle the details for you. Start with a bot that simply answers /start, then add features one at a time.
The token is the single most important thing to protect. Anyone who has it can read messages sent to your bot and send messages as it.
If you think your token has leaked, use BotFather to revoke it and generate a new one straight away. The old token stops working, and you update your program with the new one.
Creating a bot with BotFather is free. Running it may have costs, such as hosting, depending on how you build it.
You can change the display name, description and picture through BotFather. Changing the username is more limited and has its own rules, so check BotFather's current options before relying on it.
A bot only replies when a program is running with its token. If nothing is running, or the token is wrong, the bot stays silent.
Open BotFather, select your bot, and revoke the token to get a new one. Then update your program. The leaked token stops working once revoked.
Yes. BotFather has an option to delete a bot you own. This cannot be undone, so make sure you no longer need it.
You can submit it to TGDirectory for free on the submit page. Every submission is reviewed by a person before it appears.
Creating a Telegram bot starts with the official @BotFather. Send /newbot, choose a display name and a username ending in "bot", and save the token you receive. Fill in the description, about text, picture and command list so people know what the bot does. Leave privacy mode on unless you need it off. Keep the token secret and revoke it at once if it leaks. Then connect a program, test /start and /help, and build from there. For ideas on what to build, see What Are Telegram Bots and How Do They Work?.
Ownership confirmed through our claim process — not an endorsement of their content.
Founder of Telegram.
The official Telegram on Telegram. Much recursion. Very Telegram. Wow.
Telegram Premium – a subscription that unlocks dozens of exclusive features.
Binance Official English Group Binance Official Chinese Group Binance English Announcements Binance Chinese Announcements
is a modern crypto news and research platform covering the latest developments across digital assets, markets, regulation, and blockchain technology.
This channel focuses exclusively on what shapes global finance. Macroeconomics, markets, liquidity, central banks.
BlackBlock Markets exists to observe how capital moves before it becomes obvious.
Bitcoin is a global macro asset. This channel is dedicated to Bitcoin only.
Crypto Invest Next 100x. Admin