Skip to Content
Docs are being rebuilt — start at Introduction → How it works.
IntegrationsTelegram

Telegram

Connect an agent to a Telegram bot so it handles user conversations. Telegram is connected per agent in the Channels tab of the agent builder.

Prerequisites

  • A saved agent (the Channels tab is locked until the agent is saved).
  • A Telegram bot created with @BotFather , and its bot token.

What you’ll need from Telegram

FieldWhere to find itRequired
Bot Token@BotFather (looks like 123456789:ABCdef...)Yes
Bot UsernameThe bot’s @username from @BotFatherNo
Webhook SecretAny value you choose, for extra request verificationNo

How to connect

  1. Create the bot
    Message @BotFather, create a bot, and copy the bot token.
  2. Enter the token in TeamMate
    In the agent’s Channels tab, open Telegram → Configure and paste the bot token (and optionally the username and a webhook secret).
  3. Save
    TeamMate registers the webhook automatically when you save — you don’t paste a URL into Telegram yourself.
  4. Send a test message
    Start the bot in Telegram (send /start), then use the Send Test Message step with that chat ID to confirm delivery.

The webhook URL TeamMate registers is https://tmmate.ai/api/webhook/telegram/<agentId>.

What the agent can do

  • Reply to direct messages with the bot.
  • Send AI-generated responses to users who have started the bot.

Limits

  • Use a unique bot per agent. Telegram supports only one webhook endpoint per bot token, so the same bot can’t serve two agents.
  • The agent can only message a user after that user has started the bot (sent /start).

Troubleshooting

  • Test message fails. The recipient must have started the bot first; use a chat ID where /start has already been sent.
  • No replies after setup. Confirm the bot token is correct and that this bot isn’t already pointed at another webhook.