# Connect Telegram

Create a bot with BotFather, paste its token, and handle direct, group and Business Connection chats in your inbox.

Source: https://support.rework.com/article/prospect-telegram

A Telegram bot gives you three kinds of conversation in one channel: direct chats between a person and your bot, group chats the bot has been added to, and the personal chats of a Telegram Business account that has linked itself to your bot. All three land in the same inbox, and there's no approval process. You create the bot yourself and paste its token.

## Before you start

- A Telegram account you can use to talk to **@BotFather**.
  
- Permission to connect a channel into at least one inbox.
  
- A decision on which inbox the bot belongs to. One bot can only live in one inbox at a time, and connecting it again moves it.
  

## Connect the channel

1. Go to **Settings** › **Channels** **(1)** and click **Connect Channel** **(2)**.
   
   ![Settings Channels page with the Channels menu item (1) and the Connect Channel button (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/4mkt2heGa0Ir57kqmJuakqYr2d3zMrmjhoijGkU0id7S4uzYtPCbVtreoBgMIWsP/img.YVW7JzouQjZd1yWjrW36vZma6YDS7hbB7KeSFN8dtiMl8CUpY1M6lpU5RDKtZ1RP.png)
2. Pick the **Telegram** card **(1)** from the provider list.
   
   ![Connect Channel provider picker with the Telegram card (1) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/FFTtsMTJDWP6T9JNDVpBD0TtCqEsUTCRYlwdsn1WB5W4bIzX3XiR5BwQxnK49qQZ/img.IwR8YMDp69UssS1G4LB10WzHM6UqxKrQRSVkiFusWTY36ZzYcOiwiTZeBI88orTj.png)
3. Choose the inbox under **Connect to service** **(1)**. The dialog then lists the same setup steps as below.
   
4. Open Telegram and start a chat with **@BotFather**.
   
5. Send `/newbot` and follow the prompts to create a bot.
   
6. Copy the bot token BotFather gives you. It looks like `123456789:ABCdefGHIjklMNO...`.
   
7. Paste it into **Bot token** **(2)** and click **Connect** **(3)**.
   
   ![Telegram connect dialog with the Connect to service dropdown (1), the Bot token field (2) and the Connect button (3) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/jkIr1cu3DEwALRFiLwSVkEbS9WVCv4YsEpVqz1NJB0O5SyOABBdEkPrCiXJBPgwg/img.lp1RfyQsyYVsp5hmTkgwrQ2Pwp1FHNyaUHSuyLXReDB0XJWJwc191h98M457MKxA.png)

Prospect verifies the token with Telegram, takes the bot's name and profile photo for the channel, and registers message delivery automatically. On success, the dialog shows the bot with a **Connected** pill; click **Done** and you're all set 🤖

## After connecting

The channel appears under **Settings** › **Channels** with the bot's `@username` beneath its name. Click it to open the **Channel detail** panel, which shows the bot's name, username and status **(1)** and its **Handle** **(2)**.

![Channel detail panel for a Telegram bot with the bot name, username and Active status (1) and the Handle field (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/260928/UCWlFOzTe8bTCLOre4b2lPpBMch69SWFMR3QoFdN6ImtV2WM3327i2BlHgaD5HPT/img.PWyG8IXagqwwFHsXjM3XGJJALpki06ZAIaSJJylRcwG2Xim86EbKiLdDjFi4U2em.png)

Anyone who starts a chat with the bot opens a conversation in the inbox. Their Telegram name, username, and profile photo are pulled in and become a prospect, and the username is kept up to date whenever they write again. You can refresh the name and photo later with **Sync profile info** on the prospect, or in bulk with **Sync profile** from the prospects table.

In the **Inbox**, the bot is listed under **Chat services** **(1)**. Its conversations **(2)** carry a small Telegram icon on the avatar, and the right panel names the bot and **Telegram** as the provider **(3)**.

![Inbox filtered to the Telegram bot under Chat services (1), a Telegram conversation selected (2) and the conversation panel header showing the bot and Telegram provider (3)](https://storage.googleapis.com/reworkv3-public/success/260928/7VQS4HP9Ooz8x0Redd9qExNHG0kfM4SVi4c0WvPI19iQMTevkNrNcL4M4Cz1FQhz/img.2q7oTBdBUTACBkz5iOHX7EWhxU77fEtFleg0OHWnCSYVYBbksZrLSTYzVLF6umQx.png)

### Group chats

Add the bot to a group and the group becomes a single conversation, not one conversation per member. The conversation is marked with a **Group** badge in the list, and the prospect panel is replaced by a **User profiles** roster. Each message shows the name and avatar of the person who actually sent it.

The roster lists only members who have written something. Someone who joins and stays silent doesn't appear there, though joining is still recorded: the thread keeps system lines for the group being created, the bot being added or removed, and members joining or leaving.

If Telegram upgrades the group to a supergroup, the conversation follows it, so you keep the same thread and its history.

### Business Connection chats

If someone uses Telegram Business and links their account to your bot, the personal chats they handle there arrive in your inbox too. These behave differently from an ordinary bot chat in one important way: Telegram sends you both sides. The customer's messages arrive as customer messages, and the business owner's own replies (typed in their personal Telegram, not in Prospect) arrive as agent messages.

That means an owner's reply doesn't mark the conversation unread, doesn't reopen a closed conversation, and doesn't trigger an AI auto-reply. It appears in the thread so your team can see the chat was already answered.

A Business Connection chat is a separate conversation from a direct chat with the same person. If a customer has written to your bot directly and also appears through a linked business account, you'll see two threads.

## What this channel can and cannot do

| Capability | Telegram |
| --- | --- |
| Receive text, photo, video, voice, audio, documents, stickers | Yes |
| Receive a shared location or venue | Yes, shown on a map |
| Send text, images, video, audio, documents | Yes |
| Reactions | Not available yet |

A text message an agent sends is limited to 4,096 characters. A longer one is refused before it leaves, with the exact length shown in the message. Documents keep their original filename on the way out. Replying to a specific message works inside the same chat.

Reactions aren't available on Telegram conversations. The reaction control is shown, but sending one fails and the customer never sees it, so reply instead.

Telegram isn't a broadcast channel: campaigns can only go out over WhatsApp Business. Telegram has no re-engagement time limit, so the composer shows no messaging-window hint.

A bot token doesn't expire. It stops working only if you revoke or regenerate it in BotFather.

> **Warning:** **Disconnect** removes the delivery registration from Telegram, so the bot stops sending anything to your inbox immediately. Existing conversations stay, with their history.

## Troubleshooting

| Symptom | Cause | Fix |
| --- | --- | --- |
| **Invalid bot token format. Expected: 123456789:ABCdef...** | Only part of the token was pasted | Copy the whole token, including the digits before the colon |
| **Invalid bot token** | The token was revoked or regenerated in BotFather | Send `/token` to BotFather, then paste the new one and connect again |
| Bot connects but nothing ever arrives | Telegram has no reachable address to deliver to | Reconnect the bot; if it still stays silent, ask your administrator to check the installation's public address |
| Group messages do not appear | The bot isn't a member of the group any more | Add the bot back to the group |
| A long reply is refused | Over Telegram's 4,096-character limit for one message | Split it into two messages |
| A reaction fails to send | Reactions aren't implemented for Telegram | Reply in the thread instead |
| The same person shows as two conversations | One is a direct chat, one comes through a linked Telegram Business account | That's expected. Merge the prospects if you want one prospect record. |
