How to add a bot to telegram. Bots for telegram

Telegram is actively gaining popularity, and this is largely due to the introduction of bots. After they were implemented in the messenger, channels actively began to appear in it various services and companies that strive to stay always in touch with their audience. In Telegram you can create a fairly “advanced” bot, which is actively used by large companies. Now almost every store, application, website has its own Telegram bot, and these bots are becoming smarter every month - developers have new APIs, which allow them to implement large quantity functions. In this article, we will look at how to add a bot to Telegram in order to interact with it.

Table of contents:

What functions do bots perform in Telegram?

As noted above, bots can perform a huge variety of functions, the number of which depends on the “level” of interaction with the API.

The simplest bots, created without knowledge of programming by using various services that automate the development process, are capable, for example, of notifying the user about new posts that have appeared on the site, or responding to certain requests using certain commands. Such bots are most often used by website owners so as not to lose their interested audience.

More complex bots are capable of much more. Let's give an example. There is a company called VkusVill, which sells products. She created one of the most multifunctional Russian-language bots in Telegram. Its purpose is to notify customers about various offers, convenient use loyalty programs, exemption of sellers and hotline employees from the same type of questions, and so on. Here are just a small part of the functions that the VkusVill bot performs:


The above is far from full list what the VkusVill bot can do, and this is just one example. In total, several thousand large companies now have their own functional bots in Telegram.

Using bots in Telegram is good opportunity eliminate the need to store on your phone a large number of applications for each company. For example, there is no longer a need for clients of many banks after they have created their own Telegram bot, through which you can view your balance, transfer money and perform various other operations.

How to add a bot to Telegram

To use a bot in Telegram, you must first register in the messenger itself. After that, from any of the clients (smartphone, tablet, computer, etc.) you can subscribe to any channels, as well as add bots.

To add a bot, you need to enter its name in the search.

Next, the bot page will open, on which you need to click “Start” or “Start” to begin interaction.

That's it, adding the bot to your contact list is complete. After that you can interact with it using like text commands, which the bot perceives, as well as buttons under the message input line that facilitate interaction with the bot.

Please note: Each bot has its own set of commands. For example, if one bot has to call information message You may need to enter the command /info, then another bot can use the / command to perform the same taskshelp or other.

How to add a bot to a Telegram group

In the Telegram messenger you can create groups, which are chats. They unite several users. Administrators have the ability to add bots to such groups. This may be necessary, for example, if the bot notifies about new articles on the site, and their appearance is interesting to all group members.

I continue the series of posts dedicated to Telegram. One of the advantages of this messenger for website creators and owners is the ability to set up auto-posting (broadcast) from your website. This could be an announcement of new articles and posts from the site in Telegram, a selection of news, notifications, and so on.

I will show my examples on the Russified version of the application, if you have not yet switched your Telegram to Russian, you can quickly do this by reading the instructions from my previous manual - How to change the language in Telegram Messenger on Android and iOS

Now we create and register the bot:

1. Find a bot by name in Telegram through a search:

2. Select it, a window appears with the message:

3. Click begin(or enter the /start command depending on your Telegram versions), the following message appears with a list of possible commands for:

4. Now we create our bot, enter the command /newbot (you can not enter it, but click on this command directly in the list) and come up with any name you like for it (for this example I called PunkBot) :

5. Then you need to come up with a unique name for the bot, it must end with three letters bot or so _bot (I set the name PunksBot) and if the name is free, then in the response message we will receive a token:

6. Copy the token and save it, we will need it later, you can try to remember it. Smile. In the same message above the token there will be a link to your new bot, follow it and start the bot with the /start command (or click begin). Bot created and registered:

We're done with the bot for now.

Of course, the bot we created is currently only suitable for use in creating a broadcast of posts from the site. In order for the bot to become fully functional and be able to execute various commands, it needs to be programmed. I will tell you how to do this in a separate article on this topic.

Now we need to create a channel where we will broadcast posts from the site.

Create a channel:

1. To do this, open the menu (in the upper left corner of Telegram) and select the item Create a channel:

2. Enter the name of the new channel (in our example PunkVox) and click on the left top corner tick:

3. In the window that appears, select “Public Channel” and come up with a unique link for it (I left it like that punkvox), if the address is free, click the checkbox again, we will be prompted to add contacts, we can skip this action.

That's it, the channel has been created. All that remains is to add to the channel administrators PunkVox our new bot PunkBot.

Today the Telegram messenger is gaining more and more popularity. Many people began to associate it with bots. This is due to the fact that some channel/group managers cannot imagine their work on Telegram without robot assistants, which make our lives much easier. And new users who have heard about bots ask how to connect a bot to Telegram? Let's find solutions.

This is exactly what we will talk about in our material today.

Let's first define what it is? A bot is a program (lines of code) written by a programmer to perform certain tasks.

Telegram does not restrict the use of robots in any way. Therefore, they are capable of almost anything. With sufficient programmer skills, he can create a program of almost any complexity.

Empowerment

So, judging by the fact that bots are capable of almost everything, we can name the first reason why people connect them - expanding capabilities. That is, they bring something to the messenger that was not there before.

A good example is a statistics bot. He knows how to collect statistics on the channel or its participants, and then, at the request of the manager, he shows it. This is very convenient, especially when you are worried about your future development strategy. After all, the data obtained will help determine the target audience, what content is more interesting to people, and much more. Telegram itself does not have such a tool.

All processes are performed by robots fully automatically

People often use bots specifically to automate certain work processes. This is especially true for routine work. After all, it’s much easier to transfer everything to a program that will perform these tasks much faster and better, and at this time we can do more important things or relax. This greatly simplifies our work with Telegram.

For example, chatbots that are able to communicate with people. They can be configured to answer most frequently asked questions themselves. And in this situation, everyone is happy, both the clients who received an answer to their question, and you, since you did not have to waste your time on this.

They are free

All ready-made bots are free. You don't have to buy them or pay to use them. This is Telegram's policy. If you are faced with something that they are trying to sell you, then you should not fall for it.

Programs can only be paid if you order their development from professionals. For example, you didn’t find a bot with the required functionality and therefore turn to programmers.

How to connect on PC?

Let's try to connect some bot. For example, let's take a rather interesting candidate called Shmalala Bot. This is a chat bot that can cheer up the entire chat, it will tell interesting stories and much more.

Below are the instructions, just follow them:


Ready! The robot should now work. He will periodically send messages to the chat.

We make a bot in the constructor and connect it

In the example above, we connected a ready-made bot. We also want to show you how to make your own bot in the designer and connect it. We will use ManyBot as a constructor.

This process will be somewhat more complicated, but not so much that it will cause any difficulties.

So, as an example, we will try to create a bot that will automatically post news from the site to the Telegram channel.


Ready. Our assistant has been created and configured. And all that remains to be done is to add him to the desired channel/group and assign him as an administrator.

How to connect on a smartphone?

WITH personal computer and the desktop version of Telegram was sorted out. Now let's talk about mobile devices. Let's try to do the same steps, only on a smartphone.

So, first, let's try to connect our Shmalala Bot again.


Ready! Now she will communicate with you and the rest of the group.

Setting up an auto poster in Telegram

And finally, let’s try to set up the same auto-poster, which will publish all the news that is published on the site.


To start auto-posting, add the bot to the channel/group and assign it as an admin.

Ready! As you can see, the setup process on PC and on mobile version not much different. The most big difference is the interface.

When connecting robots to Telegram, you may have certain problems and questions. We tried to give answers to some of them.

  1. What to do if the program is silent? In this case, the reason may be different: the bot may simply not work due to an error in the program code (there is nothing you can do about it), the server may take a long time to respond (you need to wait), or you enter the wrong command (type “/help” and The bot should send a message with possible commands).
  2. When using popular robots, always check that the username is spelled correctly, as today there are clone bots that look exactly the same but do not work correctly.
  3. When creating a bot in BotFather, the username must always end with "bot". This distinguishes robot accounts from human accounts.

Bottom line

Today we talked to you about connecting bots to Telegram. Now you know why and how this is done. And your task is to use the information received. We hope the article was useful.

The messenger developers encourage the creation of robots, so their number is growing every day. Today we’ll tell you how to find and add a bot to Telegram, as well as how to use it. This is very useful programs, who will be able to manage channels for you or post messages/mailing lists in your groups, etc. After all, searching and issuing information takes a lot of time, but a high-quality robot will do everything itself. If you are running a business, then robot programs can be an excellent marketing tool.

Where to look for the right service

If you don’t know the exact name of the resource you need, you can use the Telegram Store website https://storebot.me/
This is a catalog that provides information about all current developments. If it’s not convenient to search on the site, look for @strorebot.
You can look at the top chart, new items or recently added ones.
You can also type in the search bar keyword, related to the purpose of the service - this will help to perform a targeted search.

How can I find out more about the bot?

All Additional Information described by the developer at the creation stage. It is also available to the user:


Information also appears when the robot starts.

How to add a bot to Telegram?

Once you know the name of the resource, enter it in the search bar (magnifying glass icon). A list of programs matching the typed string will appear on the screen. Select the one you need and click on it. Now the robot will always be on the list.

To start a chat, just click on it. Messages are entered into the search bar. As we can see, you don’t need to take any special actions to add a bot to a Telegram chat.

How to add a Telegram bot to a group

Let's look at it step by step:


We figured out how to add a bot to a conversation. All that remains is to find out how to add a bot to a Telegram channel. To do this, follow these steps:

  • Similar to creating a group, we create a Telegram channel. Enter the name and select: private or public. Copy the link - invitation. If you are using a smartphone, just press and hold it.

  • Invite members to your channel. You can add members to an already created channel. To do this, go into it and click on the name. Next, select “Subscribers” and “Add subscriber” or “Invite via link”.
  • A bot cannot be a subscriber, only an administrator. Therefore, you need to create your own robot through the @Botfather service and configure it. Be sure to enable “inline mode” and grant group rights in the “Group Privacy” menu.
  • Provide the program with an action, such as a survey or mailing. You can set them in the @manybot constructor.
  • Next, go to the channel and click on its name. In the menu, look for “Channel Management” or Manage Channel
  • Click Add Administrator.
  • Next, click on the magnifying glass icon (search) and enter the name of your bot.

Groups in the Telegram application are structured quite democratically, and discussion participants can invite friends, change their profile name or photo. Recently, the developers decided to create the ability to add a Telegram administrator.

Administration system

Telegram administrators perform the functions of moderators; it is also possible to use a bot instead of a moderator.

The use of moderation was caused by an increase in the number of regular subscribers. Moderators can choose and set the rules by which the community will function. By default, the settings can be managed by all participants, but users can also set their own managers and add Telegram administrator signatures for convenience.

To assign a Telegram administrator, you need to click on its name in the channel at the top:

After that, go to the group settings menu:

Then you need to click on “Assign an administrator”:

Next, in the “Administrators” item, you can select a candidate from the contact list. By default, this is the channel creator:

You can also install a bot instead of an administrator (to automate the publication of posts). To do this, contact the main bot with the @BotFather command and specify the name displayed in the channel and the unique username of the created bot. When publishing posts, name and username special significance do not have (only you will see them).

Telegram administrator functions

The Telegram administrator can appoint leaders of his groups. When Restricted Mode is enabled, they can add and remove users from a group discussion. The supergroup admin informs users with pinned messages, which is not the case in groups and channels.
How to create a supergroup? To do this, you need to convert a regular group by selecting “Convert to supergroup” from the menu:


Please note: this action is irreversible, so create a supergroup if it makes sense to use it:

How to pin a message in a Telegram group

Using attached messages, admins can inform all participants. To attach a message to a supergroup, you must click on the message; A menu will appear in which to select the “Attach” item (leave the “Notify all participants” checkbox):

That's it, now the attached message is displayed at the top of the chat and visible to all users:

Telegram administrators are divided into categories, where each will have their own responsibilities and signature: for example, one category chats with clients, the second monitors client alerts, the third group performs current tasks and comes to the aid of the second group of administrators. All chat improvement tasks come down to ensuring that the Telegram administrator is visible to each chat user. During the work process, responsibilities are distributed among administrators - each performs functions at his own discretion. The distribution of responsibilities can be agreed upon in personal correspondence with group leaders.

As you can see, the logic of interaction with the program when installing a signature is simple; you just need to carefully study the structure of the settings menu.

For corporate use, you can add duty administrators (as well as bots) and managers to the chat, and in this regard, Telegram replaces technical support. Smart app significantly facilitates communication with clients, speeding up the exchange of information. For comparison, remember the average time it takes to communicate with the administration via tickets.

The big advantage of Telegram is its open program code, whose functions can be assigned to current tasks if desired. For example, you can make changes to the display of chats (they appear too large in the list), compressing them to a feed, or modifying the search inside a Telegram chat, making it possible to mark all chats as read, assigning a group by chat, setting a change in sorting when searching, and much more.

You can leave all questions about working with the application, comments and suggestions for improvement in the comments to this article.

Internet