Help / Telegram Integration

Telegram Integration

Connect your Telegram bot; save people who message the bot as customers and reply to messages in the shared inbox.

What does this integration do?

You connect the bot you created on Telegram to Chatmatic. Everyone who messages the bot automatically becomes a customer record; their messages land in the shared inbox and the team replies from there. You can assign conversations to agents and use automatic replies.

Path: Left menu → All Integrations → Telegram (also reachable from the Messaging Channels section in Settings)

Telegram integration page

Before you start

  • The Telegram integration must be enabled in your plan. If it is disabled, you will see a “plan not eligible” warning; open a request via Support for your plan.
  • You need the Integration Management - Create permission to start the setup: Roles and Permissions.
  • Your plan must have an available account slot. The Current Accounts and Limit boxes at the top of the page show how many bots you have connected and how many slots you have.
  • You need a bot on Telegram and the bot’s token. How to get one is explained below.

1. Creating the bot (BotFather)

  1. Open @BotFather on Telegram.
  2. Type /newbot.
  3. Give your bot a name and a username.
  4. BotFather sends you a token. Copy it.

If you already have a bot, you don’t need to create a new one; you can use the existing bot’s token.

The token is like your bot’s password. Do not share it with others. Chatmatic stores the token encrypted.

2. Connecting the bot to Chatmatic

  1. Click the Privacy Agreement link, scroll to the end of the text and click I Accept. This approval is needed only once.
  2. Click the Start Setup button at the top right. The secure connection window opens.
  3. Paste the token you got from BotFather into the window and confirm.
  4. When the connection is complete, your bot is added to the list on the page.
Telegram bot token window

If the window doesn’t open, turn off your browser’s pop-up blocker and try again.

A bot can be connected to only one integration at a time. If the same bot is registered elsewhere (including another company), it won’t connect.

Customers messaging the bot

On Telegram, a bot cannot send the first message to someone who has never messaged it. The customer must message the bot first.

Send customers this link: https://t.me/<bot_username>

A person who messages the bot is saved as a customer. The ID, username and display name coming from Telegram are recorded in the customer record.

Using it with Telegram Business

In Telegram Business, a business can have a bot answer the chats coming to its own account. To do this:

  1. In @BotFather, turn on Business Mode for your bot.
  2. In your Telegram Premium account, add the bot under Settings → Telegram Business → Chat Bots.
  3. Give the bot the right to reply.

Business usage requires a Telegram Premium account. This requirement belongs to Telegram, not Chatmatic.

Managing connected bots

The list rows include the following:

Field / actionWhat does it do?
PermissionDetermines which agents can see the bot and write replies. For a non-Admin user to send messages, chat (reply) permission is required: Roles and Permissions
ReadTurns on/off sending read receipts to the other party when you read messages. Affects only Telegram Business chats
Active / InactiveTemporarily disables the bot without deleting the connection
Reconnect (plug icon)Refreshes the connection if it has broken
DeleteRemoves the bot’s connection

When reconnecting, you must enter the token of the same bot. A different bot’s token is rejected.

If a bot’s connection needs to be refreshed, a yellow warning appears in the row; click the Reconnect button. A dot also appears next to Integrations in the menu.

Removing the connection

After disconnecting the bot, we recommend regenerating the token for security:

  1. Open @BotFather on Telegram.
  2. Type /revoke and select your bot.
  3. The old token becomes invalid and a new one is created.

How does it work?

What data is used?

Troubleshooting

ProblemSolution
Start Setup is disabledCheck that Telegram is enabled in your plan, you have an available account slot and you have the Integration Management - Create permission.
Connection window doesn’t openTurn off the pop-up blocker
Bot won’t connect, an error appearsThe bot may be registered in another integration (even in another company). Remove it from there first or create a new bot via BotFather
Error when reconnectingMake sure you entered the token of the same bot
I can’t send a message to the customerThe customer has never messaged the bot. Send them the https://t.me/<bot_username> link
Agent can’t write repliesGrant that user reply permission from the Permission setting in the row
Business chats aren’t arrivingCheck that Business Mode is on in BotFather, and that the bot is added to Chat Bots in the Premium account with reply permission granted
Reconnect warningClick the Reconnect icon and enter the token
Bot can’t be addedThe account limit in your plan is full. Delete an old bot or upgrade your plan