# How to integrate your ChatofAI chatbot with Telegram?

## 1. **Create a Telegram Bot**

Following these steps, you can create a chatbot in Telegram and get the access token to connect the chatbot with your AI chatbot!

### 1.1 Search for "**BotFather**" and open it.

<figure><img src="https://543652368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZGXxzmub76iILU3XH4DB%2Fuploads%2FecIk4M1Yjg6CaQqXkHj6%2Ft1.1.png?alt=media&#x26;token=f43d6ca7-5f6f-4aaf-90f0-dc48d2c26795" alt=""><figcaption></figcaption></figure>

### 1.2 Hit the "**Start**" button.

<figure><img src="https://543652368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZGXxzmub76iILU3XH4DB%2Fuploads%2FCkuvvWfYflnSHrOESLhj%2Ft1.2.png?alt=media&#x26;token=f39c2d31-6d01-490c-84e0-94aeb69a1e67" alt=""><figcaption></figcaption></figure>

### 1.3 Type the command "**/newbot**" and hit enter.

<figure><img src="https://543652368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZGXxzmub76iILU3XH4DB%2Fuploads%2FESuhoBsXEETLhS0TClMr%2Ft1.3.png?alt=media&#x26;token=fe0945ae-87d4-4e4c-a632-f33532ae726a" alt=""><figcaption></figcaption></figure>

### 1.4 Type a name for your bot and press enter.

<figure><img src="https://543652368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZGXxzmub76iILU3XH4DB%2Fuploads%2FT06d7Kmpdv8jSP6xwKdY%2Ft1.4.png?alt=media&#x26;token=0a157fde-3eda-45cd-956c-030a201837f0" alt=""><figcaption></figcaption></figure>

### 1.5 Give a username for your bot and hit enter again.

<figure><img src="https://543652368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZGXxzmub76iILU3XH4DB%2Fuploads%2FyJTb6UhbCfvK7Q8m5fA1%2Ft1.5.png?alt=media&#x26;token=b4e8134b-e991-4c8e-ae7d-cbc96170f402" alt=""><figcaption></figcaption></figure>

### 1.6 Copy the access token.

<figure><img src="https://543652368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZGXxzmub76iILU3XH4DB%2Fuploads%2FXpcjFYADNq2rqZxi8w3L%2Ft1.6.png?alt=media&#x26;token=1d3e8ba8-1895-47d3-8a9f-50ae730b7bce" alt=""><figcaption></figcaption></figure>

## 2. Set up Telegram integration

In this step, we'll guide you through the process of setting up a webhook for your Telegram bot to connect with our AI chatbots.

By following these instructions, your chatbot will be able to receive messages and reply to your users on Telegram bots.

### 2.1 Go to your chatbot Integration dashboard&#x20;

<figure><img src="https://543652368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZGXxzmub76iILU3XH4DB%2Fuploads%2F9EGoSKc5ztDT2YfqLN47%2Fimage.png?alt=media&#x26;token=17d89257-e055-4954-84f8-ddca5587b4e7" alt=""><figcaption></figcaption></figure>

### 2.2 Connect your Telegram

<figure><img src="https://543652368-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZGXxzmub76iILU3XH4DB%2Fuploads%2FVWwrzX31A6Qjs7aHrEsm%2Fimage.png?alt=media&#x26;token=98b60452-03e9-4092-9a29-53969f7bda1b" alt=""><figcaption></figcaption></figure>
