Blog and knowledge base of the service
Creating a bot in Telegram and getting a token in @BotFather
Published: 19.07.2024

Register a new bot in Telegram and receive a token.

Finding the father of all bots

Log into Telegram and enter the name of the bot "@BotFather" in the search bar. Beware of fraudulent bots or third-party channels. The official account has a verification check mark. And it doesn't have any extra characters in the bot's nickname.

Finding the father of all bots-1

Next, click on the "/start" button at the bottom of the page. Then we enter or click on the phrase "/ newbot". (Please note that the bot only works in English. But basic knowledge or the presence of a translator will be enough to understand it.)

Finding the father of all bots-2

Next, the bot asks you to come up with a name for your bot. The name is displayed in the place that I indicated in the picture. If you can't come up with it yet, then it's okay to change it in the future. I will enter the name "BOT-MARKET"

Finding the father of all bots-3

Next, we need to come up with a link to the bot. There is an important rule, the link always ends with the phrase "bot". It is very important to come up with a good link that you like. Since it will be almost impossible to change it in the future. (There are exceptions, thanks to the telegram platform "Fragment", but we talked about it in our other article. And it's quite expensive) We will enter a name for the bot "BOTT_MARKET_BOT". During the input, you may encounter errors of infidelity of the nickname, and the nickname may already be occupied.

Finding the father of all bots-4

And so we received our long-awaited token from the bot. I highlighted it in the screenshot.

Finding the father of all bots-5

And what is a token from a bot and why is it needed?

A token from a Telegram bot is a unique identifier that is assigned to each bot when it is created. This token is used to authenticate the bot and ensure the security of its interaction with other users and services.

Transfer the token only to verified persons. When entering a token in the constructors, make sure that you have reissued it.

An overview of the basic commands for configuring and managing the bot.

How to access the bot settings

In "@BotFather" we write the command "/mybots", it will display all your bots.

How to access the bot settings-1

Next, select the desired bot, and click on the "Edit Bot" button. In the screenshot, I showed what the fields are responsible for.

How to access the bot settings-2

Edit the avatar and add a picture above the description of the bot

Also go to the bot settings.

Edit the avatar and add a picture above the description of the bot-1

Description picture, responsible for the picture before the description of the bot. The picture must be of a strictly defined size and extension

Botpic is a bot avatar.

How do I delete a description image or avatar from a bot?

We also go into the bot settings, but instead of sending images, we send the command "/empty"

We reissue the token, delete the bot, or transfer it to a friend

Changing and reissuing a token from a bot in Telegram

Go to the bot settings and click on the "Api Token" button

Changing and reissuing a token from a bot in Telegram-1

Next, click on the "revoke" button

Changing and reissuing a token from a bot in Telegram-2

As a result, you will have a new token!

How to delete a bot

Go to the bot settings and click on the "Delete Bot" button. important! The action cannot be undone!

We confirm the deletion and realize that it will not be possible to restore

How to delete a bot-1

How do I transfer a bot from telegram to another user?

Log into the bot and click on the "Transfer Ownership" button

How do I transfer a bot from telegram to another user?-1

Next, enter the user's nickname. It may encounter errors, for example, the screenshot shows the case that the user to whom I want to transfer the bot has not yet written the /start command to the bot. You may also encounter a problem that you recently changed your account password. It is necessary to wait 7 days after changing the password. Then you can send

How do I transfer a bot from telegram to another user?-2

I fixed the error. And then I confirm the action. Keep in mind that you will not be able to return it yourself!

How do I transfer a bot from telegram to another user?-3

Additional settings

How to set commands in the Telegram bot

Go into the bot management, then click "Edit Commands"

How to set commands in the Telegram bot-1

Next, we come up with commands. To do this, we send a message as shown in the screenshot.

How to set commands in the Telegram bot-2

The result is shown in the screenshot. It is important to note that we did not add logic to these commands.

How to set commands in the Telegram bot-3

How do I contact the Telegram support service?

Write to the bot @BotSupport

To contact Telegram support on issues related to bots, you can use the official @BotSupport channel in the Telegram messenger. This channel is designed to help bot developers and users who have problems or questions about working with bots.

Write to the bot @BotSupport-1

To contact support, simply send a message to this channel, describing your problem or question in detail. The support team will try to help you as soon as possible.

How do I program a bot?

BOT-T is a bot creation service

You can set up your bot via the website bot-t.com

BOT-MARKET - create, sell and buy bots

Hundreds of bot creators have already published their solutions on the platform. Join them on our site bot-market.com