# Telegram Integration

If you wish to integrate Telegram as a channel into [OneTalk by TapTalk.io](https://taptalk.io/onetalk), the most important thing to do is to create a Telegram bot and obtain the Bot token.

In this article, we will explain to you step-by-step how to create a Telegram bot and obtain the bot token and then integrating the Telegram into our dashboard.&#x20;

If you already have the Telegram Bot and have Bot Token, please proceed to [step 2](/onetalk-omnichannel-documentation/onetalk-channel-integration/telegram-integration.md#step-2-integrating-telegram-into-onetalk-by-taptalk-io-dashboard).

### Step 1: Create Telegram Bot and Obtain Bot Token

You can follow these steps for a quick way to create a bot on Telegram. For more detailed information, you can find it on the [official site](https://core.telegram.org/bots).

**1.Open @BotFather in Telegram**

Open your Telegram app, find Telegram bot named "**@botfather**", he will help you with creating and managing your bot.

![Search @botfather in Telegram](/files/-MHKRrP5QrjWm4jLav8Q)

![Click "Start" to start creating a new bot](/files/-MHKSAB-z6y5OImU2CPC)

**2.Create new Telegram bot**

![](/files/-MOAiHDOYMF8i64rh5NC)

Click Start and type **"/newbot"** for creating a new Telegram bot. You can type “/help” for all possible commands that the Botfather can operate.

Follow the instructions given and create a new name for your bot. If you are making a bot only for experimentation, as it has to be a unique name, you can use namespace your bot by placing your name before it in its username. On completion, Botfather will generate a link to your bot and your **bot token**.

Congrats! You've just created your Telegram bot with the provided bot token. You will see a new API token generated for it. In the sample above, it's **1453797035:AAHwi4rkmgpDihooGSE677QL3uCxJmErdNQ**. \
Now you can copy that token and input the bot token into our Telegram integration page.

### Step 2: Integrating Telegram into OneTalk by TapTalk.io Dashboard

After you create your Telegram Bot and obtain Telegram Bot Token, you can integrate your Telegram Bot into our dashboard, please follow these steps for a quick way to integrate the Telegram Bot

**1. Create New Channel**\
Open [OneTalk Dashboard](https://onetalk.taptalk.io), click **Integration > Telegram** menu and click **Add Channel**

![](/files/-MOAiYLykfoSusV6NOqN)

**2. Insert Channel Name & Validate Bot Token**

![](/files/-MOAjkmTDcyua6_dc3NP)

**Select the topic** for this channel (Each Telegram bot will be **tied into a single topic** of your own choosing so that each incoming message to these accounts will be grouped to the topic of your choice), then **input your Bot Token**. After that click **Validate Button.**

**3. Connect the Channel**\
Make sure your Bot Token is valid. If your Bot Token is valid, the Bot Username and Bot Name will be shown here. After that you can press **Connect button** to connect your Telegram Bot to our dashboard.

![](/files/-MOAkdiWMP53bk115CVc)

Congrats! Your Telegram Bot is now connected to our dashboard, now you can send and receive messages that are coming from that particular Telegram account. \
\
For more information about the integration process, please do not hesitate to send us an email at **<dev@taptalk.io>**.


---

# 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.taptalk.io/onetalk-omnichannel-documentation/onetalk-channel-integration/telegram-integration.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.
