Skip to main content

Telegram

Integrate your AI Agent with Telegram for direct user messaging. You connect a single Telegram bot to your deployment using a Bot Token from Telegram’s @BotFather. Kaily verifies the token, registers the Telegram webhook for you, and routes conversations to your AI Agent.

Open Telegram setup from the Deploy section of your AI Agent dashboard.

1. Open Telegram setup

  1. In the Kaily dashboard, go to Deploy.
  2. Find the Telegram card and choose Setup Now (or the equivalent entry point for your workspace).

The setup view explains that you are connecting Telegram for direct user messaging and shows Bot Credentials on the left, with How to get your Telegram bot token on the right.

Enter your bot token and follow the in-product steps, then click Save to connect.

2. Create a bot and copy the token (BotFather)

Use Telegram’s official @BotFather bot to create a bot and obtain its token.

  1. Open Telegram and search for @BotFather, or open it directly using the link above. BotFather is Telegram’s official bot for creating and managing bots.

  2. Send /newbot to BotFather and follow the prompts to create a new bot for your AI Agent.

  3. Enter a display name for your bot, then choose a unique username that ends with bot (for example kaily_agent_bot). If the username is taken, BotFather will ask you to try another one.

  4. When setup is complete, BotFather sends a Bot Token. It looks like 123456:ABCdef_xyz.

  5. In Kaily, paste the token into the Bot Token field. The helper text Get this from @BotFather on Telegram reminds you where the value comes from. Click Save to store the token and connect your bot.

    Paste the token, confirm the helper text matches BotFather, then click Save.
Keep your token private

Do not share your bot token in chat, email, or public repositories. If a token is exposed, revoke it in BotFather and generate a new one before reconnecting in Kaily.

3. Test your bot

  1. In Telegram, open a chat with your bot (using the username you set in BotFather).
  2. Send a message; your AI Agent should respond according to your copilot configuration and knowledge base.

If something fails, confirm the bot is active in BotFather, the token matches the latest value from BotFather, and you are messaging the correct @username.

Kaily logo

More than just a virtual AI assistant, Kaily brings interactive, human-like conversations to your website. Easy to create, easier to customize, and the easiest to deploy—no code required. Let Kaily enhance your user experience using the information you provide.

Is this page useful?