# Telegram

#### Telegram Bot Token - Important details

* The Bot Token is a unique authorization key that allows LiveCaller to connect to your bot via the Telegram Bot API.

#### Telegram Token Generation

1. Opem **Telegram Messenger**
2. Add the account @BotFather.
3. Type `/newbot` and follow the simple instructions.
4. After successfully creating the bot, you will receive a message containing the Access Token.

{% columns %}
{% column %}

<figure><img src="/files/OitoRjwfFTm999R9nOnm" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="/files/GtF2rUZvBQ1EtNkwFr4c" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

**Token Refresh / Regenerate**

In Telegram, the Token does not have an automatic expiration date.\
It remains valid indefinitely unless it is manually revoked.

To refresh the Token:

* Open @BotFather
* Use the command `/mybots`
* Select the relevant bot
* Click **API Token → Revoke current token**
* Confirm - the system will automatically generate a new Token

**Important:**\
After changing the Token, you must update the new Token in the LiveCaller Admin Panel; otherwise, the integration will stop working.\
The old Token becomes inactive immediately.

<figure><img src="/files/2PoLEo9XcDzhmGiVw46E" 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.livecaller.io/livecaller/services/integrations/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.
