# Telegram

## What does it allow?

This channel allows you to fully automate communication with customers.

## Connection

### Connecting Suvvy to a bot in Telegram

1. To connect Telegram to your bot in Suvvy, go to the "Channels" section and select Telegram.

<figure><img src="/files/N7RiFaAlTwv8oyrILwJX" alt=""><figcaption></figcaption></figure>

2. We see a field where we need to enter a token. A token is a unique user identifier in Telegram. It allows servers to identify requests; it encrypts access to the channel bot so that fraudsters do not obtain it.

<figure><img src="/files/Jilyxv4ja36E8s1AFlsQ" alt=""><figcaption></figcaption></figure>

3. To get the token, you need to type @BotFather in the Telegram search bar.

<figure><img src="/files/KPJhHP89OjDGXzPSln2n" alt=""><figcaption></figcaption></figure>

4. By clicking on the Start button, we receive a list of commands that this bot can execute. If our task is to get the token of an existing bot, then we need to select the /token command.

<figure><img src="/files/dizumYCihysDb1BWuLuz" alt=""><figcaption></figcaption></figure>

5. After you have received the token in BotFather, enter it in the Telegram field and click "Save."

<figure><img src="/files/apVhimUcB5lmMc5tSpKY" alt=""><figcaption></figcaption></figure>

6. Next, the following settings will appear:

<figure><img src="/files/o9L2DOlFuRZnCEU4cfjk" alt=""><figcaption></figcaption></figure>

If we set a Greeting message in the Message field for the /start command, the bot will always write it when a client contacts the Telegram bot, which is already connected to Suvvy:

<figure><img src="/files/5jk7hoWtrCZ9pwok5KKn" alt=""><figcaption></figcaption></figure>

### Connecting Suvvy to an individual account

If you have Telegram Business, you can connect Suvvy to an individual Telegram account. For this, there is a designated User ID field.

{% hint style="info" %}
On March 31, 2024, Telegram released a useful update — the ability to link a chatbot to a business account and conduct bot communication with clients not only in bot mode but also when users message the familiar Telegram account.
{% endhint %}

NOTE: Telegram Premium is needed for this.

1. You need to send the /start command to the bot [@PremiumBot](https://t.me/PremiumBot).
2. Next, payment is required for the duration you want to keep Premium.
3. After payment, go to @BotFather, click `/mybots`, and select the desired bot.
4. Then select Bot Settings.

<figure><img src="/files/mKayYxlMeuSn5NkahOgp" alt="" width="373"><figcaption></figcaption></figure>

4. Click on Business Mode.

<figure><img src="/files/e2n2VbcgZSlT1KM0DuQi" alt="" width="341"><figcaption></figcaption></figure>

6. Then select `Turn On`.

<figure><img src="/files/6pYv0TflCYoeUu7VXpdH" alt=""><figcaption></figcaption></figure>

### Connecting Telegram Business

1. It is important to update Telegram to the latest version.
2. Then go to account settings.

<figure><img src="/files/MiLb1LPYvuN7ySldP1f7" alt=""><figcaption></figcaption></figure>

1. Next, go to the "Chat Bots" section.

<figure><img src="/files/LiyT05WYdk2XbuAKWYRD" alt=""><figcaption></figcaption></figure>

1. Enter our bot's username in the "Bot Username" field.

<figure><img src="/files/yM2pB8B3ecY162EBjHG9" alt=""><figcaption></figcaption></figure>

6. Click "Add."

<figure><img src="/files/IuWVK6OqRI2jLcLyH4IR" alt=""><figcaption></figcaption></figure>

## Disabling bot responses

If, for some reason, you temporarily need to disable bot responses in Telegram, mark the "Bot Responses:" setting as "Disabled."

<figure><img src="/files/lIx2GcSH39lodQCMASDh" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.suvvy.ai/en/channels/messendzhery/telegram.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
