KilatBot Docs
MenuConnect your agent to Telegram

Guides

Connect your agent to Telegram

Connect your KilatBot AI agent to Telegram without code or a separate model key. Create a bot with BotFather, save its token in Channels, then approve who can chat. Workspace owners and admins can manage access within their roles.

Before you start

  • A KilatBot agent. If you don't have one yet, follow the Quickstart.
  • The Telegram app. Your agent starts on Kilat AI, so you don't need a model key.

Planning what the bot should do? Read about Telegram bots for business and daily tasks on Telegram.

1. Create a Telegram bot with BotFather

  1. In Telegram, open @BotFather and send /newbot.
  2. Choose a name and a username for your bot.
  3. Copy the token BotFather sends you. Keep it private: anyone with it can control your bot.

2. Paste the token in Channels

  1. Open your agent in the dashboard, then Channels.
  2. Paste the token under Bot token and select Save token.
  3. If Channels asks you to, start or restart the agent to apply it.

3. Message your bot and approve yourself

  1. Send your bot any message. It replies with a pairing code.
  2. In Channels, under Who can talk to your agent, select Approve next to your name, or type the code under Or enter a pairing code.
  3. Send a test message and check that the reply is useful before you rely on it.

Only approved or allowlisted Telegram accounts can chat with the agent. The workspace owner or an authorized admin can revoke access with Remove access.

4. In a team, choose whose Telegram it is

The workspace owner and admins approve Telegram users. When you approve someone, choose their name under Whose Telegram is it?. Their role decides what that Telegram can do:

  • The owner's Telegram can buy, after asking.
  • An admin's can also save sign-ins.
  • Anyone else's can chat and answer the agent's questions. Choose Someone else (member rights) for a person who isn't in the team.

An admin can choose only themselves, a member or Someone else, never the owner or another admin. Only the owner can change or remove the owner's or another admin's Telegram. When ownership moves, the new owner assigns their own Telegram again before it can buy. Removing a person from the team takes their Telegram off the agent.

5. Or list who may talk to it

Under Allowed Telegram users, enter up to 100 numeric Telegram user IDs, one per line. Users can look up their ID with a Telegram ID bot. Never share the BotFather token with that bot. When the list is set, strangers get no reply. Changes apply to the next message without a restart.

What works on Telegram

  • Pictures and files up to 20 MB, and voice notes up to 5 minutes.
  • Audio and screenshots from your agent. Spoken clips made with Kilat voice (speech_create) and KilatBox screenshots sent with box_screenshot arrive in the owner's private Telegram chat with the agent.
  • Browsing. Your agent browses in the background and replies with the result. If it needs a sign-in, open the dashboard chat to take control.
  • Sleep. Messages sent while your agent sleeps wait until it wakes.

Read next: How to create an AI agent in Telegram for your business, no coding.

Questions and answers

Do I need my own AI model key to use Telegram?

No. KilatBot includes Kilat AI. To connect Telegram, you need an agent, the Telegram app and a bot token from BotFather.

Why should I keep the BotFather token private?

Anyone with the token can control your Telegram bot. Paste it only into the Bot token field in KilatBot, not into a conversation.

Can anyone chat with my bot after I connect it?

No. A pairing code is a request for access, not permission to chat. An owner or authorized admin must approve the account in Channels, or add its numeric ID under Allowed Telegram users.

What changes when I assign someone an owner, admin or member role?

You are linking a Telegram account to workspace permissions. The owner can approve purchases, admins can save sign-ins, and members or other approved people can chat and answer the agent’s questions. An admin cannot assign a Telegram account to the owner or another admin.

What if the agent is asleep or needs a sign-in?

A message sent while the agent sleeps waits until it wakes. If the agent needs you to sign in while browsing, open the chat in the KilatBot dashboard and take control there.

Questions and answers. Something unclear or out of date? Tell us. For AI tools: this page as Markdown.