> For the complete documentation index, see [llms.txt](https://docs.gooey.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gooey.ai/ai-agent/how-to-deploy-an-ai-copilot/deploy-to-telegram.md).

# Deploy to Telegram

## Deploy a Telegram bot

### **Step 1:** Click on the ‘Deploy’ tab

![](/files/a42671ea267d25b4cbe273044c81128743dac00c)

### **Step 2:** Select ‘Add Deployment’.

![](/files/62830ce4b72353cf729b22db854d056cefb74c04)

### **Step 3:** Select ‘Connect to Telegram’.

![](/files/12dde7e2712341c975b9cc2e6040824ee812924f)

### **Step 4:** Follow steps as instructed in the pop-up.

* Click on ‘Open BotFather’ and it will take you to its Telegram chat.

<figure><img src="/files/4b83fa4a1df579035e5324db72e73e04e4fec938" alt=""><figcaption></figcaption></figure>

### **Step 5:** Follow the instructions on Telegram.

* Click ‘Start’ at the bottom of the chat.
* Type or select ‘/newbot’, then complete naming your bot. You will receive your token.
* Copy the token and go back to the ‘Deploy to Telegram’ page.

![](/files/76753daac53bfd8cbd0955920381af640d07385d) ![](/files/e5045aa1e28223261bd45e2731687759f7fe4e65)

### **Step 6:** Paste the token in the text box and click ‘Connect’.

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

### **Step 7:** Test your Telegram Bot

* ‘Message *your bot name’.* This will take you to the bot’s Telegram chatroom.

<figure><img src="/files/12262bd3b3fe19cb570fc7db0c5ee912eda26201" alt=""><figcaption></figcaption></figure>

* Click ‘Start’ at the bottom of the chat. Ask it a few questions.

![](/files/8ac4d23955a6407d51990d79c3c16200bbd94ebf) ![](/files/7399db3be129a03aece48083a3f14e5a5447f44d)

## Add a Telegram button your Saved RunStep 1: Head to Copilot Deploy tab

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

### Step 2: Click on the dropdown under ‘Configure your Copilot’

* Find your deployment in the dropdown under ‘Configure your Copilot’
* Select your bot with the Telegram logo to its left.

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

### **Step 3:** Click the ‘Show Telegram Button’.

* Scroll down and toggle the "Show Telegram Button".

![](/files/08719f59608a1d513826aa2376840508471af589)

### **Step 4:** Generate a QR code

* Click on ‘Generate’ to generate a QR code link to your Telegram bot (or upload your own), and hit ‘Save Settings’.

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

### **Step 5:** It’s time to test the bot!

* If you head back to your "Run" or "Saved" Copilot you'll see a new "Telegram" button the top
* Click on the Telegram icon and use your QR code to start chatting up and testing your bot.

![](/files/f25c6bd57736bc81abf4a14de7964d96ce3c8e92)

<figure><img src="/files/0XNZZ7KAYfyC1bDRnIM8" alt=""><figcaption></figcaption></figure>
