Connect a Telegram bot to Dchat

Setup guide · Telegram

Create a Telegram bot, paste its token into Dchat, and customers can chat with your AI in Telegram. Dchat registers the webhook for you.

Before you start

  • Difficulty: Easy
  • Time: 5 minutes
  • You need: A Telegram account
  • You need: Admin or owner access to your Dchat workspace

Steps

  1. Create a bot with @BotFather

    In Telegram, open @BotFather, send /newbot, and choose a name and a username. BotFather replies with a token that looks like 123456789:AA…

  2. Add the channel in Dchat

    In Dchat, open Settings → Channels and choose + Add channel. Pick "Telegram", leave the identifier empty (Dchat fills in the bot id from the token), and paste the token.

    { "BotToken": "123456789:AA..." }
  3. Save

    Dchat tells Telegram where to send messages as soon as you save; there is no webhook to paste.

  4. Message your bot

    Open your bot in Telegram and send a message. It appears in your Dchat inbox, and the AI replies if AI is on for your workspace.

What goes in each field

  • BotToken: The token BotFather gave you. Dchat also stores a webhook secret it generates, which Telegram sends back with every message.

Good to know

  • Private chats with the bot only; group chats are ignored.
  • Text, button taps, photos and PDFs (up to 5 MB) are handled. Replies are up to 4,096 characters, and quick replies become buttons.
  • Changing the token later re-registers the webhook when you save.
  • Your workspace needs at least one enabled site; new workspaces have one already. Messages are dropped while every site is switched off.
  • Credentials are encrypted when you save them and are never shown again. To change one, paste the full credentials again.

Telegram is the quickest channel to try: a bot takes a minute to create and needs no business verification.