# MetaCRM Telegram Bot

## **Step 1: Create Your Telegram Bot**

1. Open ‘BotFather’ via this link: [**https://telegram.me/BotFather**](https://telegram.me/BotFather) and follow the link to Telegram.&#x20;
2. Hit the `/Start` button within Telegram.
3. Click `/newbot` link and choose a name for your bot (this is your internal name for the bot).
4. ﻿Now you need to choose a name and username for your bot (these will be visible to your end users).
5. Great! Your bot has been created. Now click on the next step

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

## **Step 2: Verify Your HTTP API Token**

1. ﻿﻿Copy the HTTP API token that's been created from Telegram.
2. ﻿﻿Head back to MetaCRM. Paste your unique HTTP API token from Telegram below. Don't share this token with anyone.

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

Congratulations, you can now start using Telegram bot to serve your users, you can also go to customize preferences first!

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

***

## Customize Preferences

* Set up welcome message
* Define the ticket type for your community

<figure><img src="/files/r2LQef7EEweqcY8LMH19" 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://metacrm.gitbook.io/metacrm/settings/general/integration/metacrm-telegram-bot.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.
