# Telegram

This guide walks you through connecting your Telegram bot to your Wonderchat chatbot.

## 📘 How to Integrate Telegram with Wonderchat

This guide walks you through connecting your Telegram bot to your Wonderchat chatbot.

***

### ✅ Prerequisites

Before you begin, make sure you:

* Have access to your **Wonderchat dashboard**
* Have a **Telegram account**

***

### 🔧 Step-by-Step Instructions

#### 1. Access Your Chatbot in Wonderchat

* Log in to your **Wonderchat dashboard**
* Navigate to **Chatbots**
* Select the chatbot you want to connect by clicking on telegram icon.

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

***

#### 2. Create a Telegram Bot

* Open **Telegram**
* Search for **@BotFather** (official Telegram bot)
* Start a chat with BotFather

<figure><img src="/files/8q0C7CQLqo1y93ifR4xU" alt=""><figcaption></figcaption></figure>

***

#### 3. Generate Your Bot

* Send the command:

  ```
  /newbot
  ```
* Follow the prompts:

  * Enter a **name** for your bot
  * Choose a **username** (must end in “bot”, e.g., `mychatbot_bot`)

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

***

#### 4. Get Your API Token

* After setup, BotFather will provide an **API token**
* Copy this token (you’ll need it for Wonderchat)

***

#### 5. Connect Telegram to Wonderchat

* Return to your **Wonderchat dashboard**
* Locate the **Telegram integration section**
* Paste the **API token** into the provided field
* Click **Connect**

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

***

#### 6. Test Your Integration

* Open Telegram and search for your bot by username
* Send a message to your bot
* Confirm that it responds using your Wonderchat chatbot

***

### 🎉 You're Done!

Your Telegram bot is now connected to Wonderchat and ready to interact with users.


---

# 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.wonderchat.io/integration-guides/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.
