How to create a chatbot in Telegram

20 June 2022
#jedidesk
Author:
#jedidesk,
Content manager

Step-by-step tutorial for creating a chatbot in the Telegram messenger


Navigation:

1. Creating a chatbot
2. Chatbot integration with #jedidesk
3. Design of the chatbot: profile picture
4. Design of the chatbot: bot description
5. Result


1. Creating a chatbot

Start the @BotFather bot with the /start command (or button) and select the /newbot command:

   Launching @BotFather / @BotFather's menu


  • Note: If you lose access to the phone number you use to create the bot, you will permanently lose access to control the bot via @BotFather without the possibility of recovery.

Give your bot a name and username.

It is important that the username of the bot has the ending Bot or _bot.

What is the difference between a name and a username? The username works as a link to go to the bot.

  • Note: Unlike the bot name, you will not be able to edit the username in the future!

Next, you will receive an API token:

Creating a chatbot in Telegram

Click on the text from the API, it will be automatically copied.


2. Chatbot integration with #jedidesk

On the #jedidesk service, open the Settings → Integrations tab, paste the copied API token and click  Activate :

Chatbot integration with #jedidesk


3. Design of the chatbot: profile picture

Come back to @BotFather and keep filling your bot.

To upload a profile picture to your bot, enter the /setuserpic command.

Select your bot from the list and send the image as a regular photo:

 Chatbot profile photo settings in Telegram

  • Tip: to preserve aesthetics and proportions, it is advisable to upload images with a 1:1 (square) ratio, as Telegram will crop rectangular images and you may lose part of the composition or the information indicated on the image.

4. Design of the chatbot: bot description

To add a description to your bot, enter the /setabouttext command.

Select your bot from the list and send your text as a regular message:

Setting the description of the chatbot in Telegram


5. Result 

Profile of a finished chatbot in Telegram

Share this post:

Related Articles

All posts
News 31 August 2023

Setting the dialogue subjects

Dialogue subjects help to collect statistics on appeals from your customers. What questions are most often of interest to your customers? What are the most common problems?

Top