> For the complete documentation index, see [llms.txt](https://docs.jedidesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jedidesk.com/english/chatbots/how-to-create-a-chatbot-in-telegram.md).

# How to create a chatbot in Telegram

#### Navigation:

1. [Creating a chatbot](#id-1.-creating-a-chatbot)
2. [Chatbot integration with #jedidesk](#id-2.-chatbot-integration-with-jedidesk)
3. [Design of the chatbot: profile picture](#id-3.-design-of-the-chatbot-profile-picture)
4. [Design of the chatbot: bot description](#id-4.-design-of-the-chatbot-bot-description)
5. [Result](#id-5.-result)

***

#### 1. Creating a chatbot

Start the [@BotFather](https://t.me/botfather) bot with the **/start** command (or button) and select the **/newbot** command:

<div><figure><img src="/files/mlWPTaPsMdTtU1GTOTAF" alt=""><figcaption><p>Launching @BotFather</p></figcaption></figure> <figure><img src="/files/9kxOxSqOL2U91UGHarLh" alt=""><figcaption><p>@BotFather's menu</p></figcaption></figure></div>

{% hint style="danger" %} <mark style="color:red;">**Note**</mark>**:** 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.
{% endhint %}

***

Give your bot a name and username.&#x20;

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.

{% hint style="danger" %} <mark style="color:red;">**Note**</mark>**:** Unlike the bot name, you will not be able to edit the username in the future!
{% endhint %}

***

Next, you will receive an API token:

<figure><img src="/files/nBcCb2gncb5heyN7nY5z" alt=""><figcaption><p>Creating a chatbot in Telegram</p></figcaption></figure>

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**](https://app.jedidesk.com/integrations) tab, paste the copied API token and click <mark style="background-color:blue;">**Activate**</mark>:

<figure><img src="/files/pe9Ha1wvL52bTGKSxoPz" alt=""><figcaption><p>Chatbot integration with #jedidesk</p></figcaption></figure>

***

#### 3. Design of the chatbot: profile picture

Come back to @BotFather and keep filling your bot.&#x20;

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:

<figure><img src="/files/KRDUeKJj5MbXco6n82O4" alt=""><figcaption><p>Chatbot avatar settings in Telegram</p></figcaption></figure>

{% hint style="info" %}
**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.
{% endhint %}

***

#### 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:

<figure><img src="/files/CiZyxDA8X0bclhCu1R2V" alt=""><figcaption><p>Setting the description of the chatbot in Telegram</p></figcaption></figure>

***

#### 5. Result

<figure><img src="/files/5KXsqBfqOOVQuNuWYJle" alt=""><figcaption><p>Profile of a finished chatbot in Telegram</p></figcaption></figure>
