> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omnicommerce.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Telegram

> Create a customer Telegram bot from OmniCommerce, assign it to an agent, or use it to trigger an AOP or project.

You need a Telegram account and permission to manage integrations in OmniCommerce. The connection flow creates a managed Telegram bot and sets up message delivery for you.

## Create and connect a bot

**1. Open Telegram setup**

In OmniCommerce, go to **Customer Support → Inbox → Channels → Channel setup → Telegram** and choose **Connect Telegram**. You can also start setup from **Agents → Channels → Telegram**.

**2. Complete setup in Telegram**

If Telegram asks you to verify your account, tap **Start** in the OmniCommerce bot chat, then choose **Create customer bot** in that same chat. Choose a name and username for your bot in Telegram and finish creating it. OmniCommerce updates the connection when setup completes. [Telegram managed bots](https://core.telegram.org/bots/features#managed-bots)

**3. Open the bot and test a message**

Back in OmniCommerce, choose **Open bot**. Send a test message and check **Inbox → Telegram**. Share the bot's Telegram link when the intended audience can reach it.

If the browser blocks the Telegram popup, use **Open Telegram** in the setup card. Start a fresh connection in OmniCommerce if the setup link expires.

## Choose who can use the bot

In **Agents → Channels → Telegram**, enable the connected bot for your agent and set its **Audience**.

| Audience | Who can use it |
| - | - |
| **Public / customers** | Customers can message the bot and get responses from the assigned agent. |
| **Internal only** | Teammates link their Telegram account in notification settings and need access to the agent. |

To run an AOP or project for messages on this bot, add an enabled **Telegram** trigger and select the connected bot. A direct agent assignment handles messages first for the audience it serves.

Use **Sync stored Telegram history** in Inbox setup to bring in messages OmniCommerce already holds for the selected bot.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.