How to create a chatbot in Telegram
To create a chatbot on the Telegram platform and connect to the JediDesk service, you need to launch the @BotFather bot:
Start the @BotFather bot with the /start command (or button) and select the /newbot command
❗️ 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.
@BotFather will ask you to give a name and username to your bot.
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!
If your chosen username already exists, @BotFather will let you know. As soon as @BotFather accepts your username, you will receive the API:
Click on the API text, it will be automatically copied.
Open the “Integrations” tab on the JediDesk service and paste the received API.
Return to the @BotFather and continue fill your bot:
To upload an avatar (image) to your bot, enter the /setuserpic command
In the form of buttons, @BotFather will show us what bots you have, click on the one you need, then @BotFather will ask you to send an image.
Send the relevant image to @BotFather as a regular photo:
💡 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.
To add a description to your bot, enter the /setabouttext command
In the form of buttons, @BotFather will show us what bots you have, click on the one you need, then @BotFather will ask you to enter a description.
Send your text as a regular message: