Skip to main content

Telegram

TelegramTeam & Community

Putting your agent on Telegram is like giving it its own contact in the app — people search for it, start a chat, and your agent answers every message automatically. This page walks you through creating the bot on Telegram and connecting it to your Nirvai agent.

Telegram channel export showing a connected botImage: Telegram channel export showing a connected bot


Before you start

  • A saved agent in the Agent Control Panel (at least the Profile step completed).
  • A Telegram account on your phone or computer.
  • A bot token — a secure access pass that lets Nirvai control your bot. You'll get this from Telegram in the next step.

Step-by-step

1. Create the bot on Telegram

Telegram has a built-in helper called BotFather that creates bots for you.

  1. Open Telegram and search for @BotFather.
  2. Start a chat with BotFather and send the command /newbot.
  3. Follow BotFather's prompts:
    • Pick a display name for your bot (for example, "My Support Agent").
    • Pick a username ending in bot (for example, my_support_agent_bot).
  4. BotFather replies with your bot token — a long secure access pass. Copy it.

Creating a Telegram bot with BotFatherImage: Creating a Telegram bot with BotFather

warning

Keep your bot token private. Anyone who has it can control your bot — treat it like a password.

2. Connect the bot to Nirvai

  1. Open your agent in the Agent Control Panel.
  2. Click the Channels node.
  3. Select Telegram from the Team & Community section.
  4. Paste your bot token into the field.
  5. Click Connect.

Your Telegram bot is now powered by your Nirvai agent. Anyone can find it by searching for the bot's username in Telegram and start chatting right away.

Entering the Telegram bot token in NirvaiImage: Entering the Telegram bot token in Nirvai

3. Test it

Open Telegram, search for your bot's username, send a quick "hi", and watch your agent reply.


What happens after you connect

  • Every message sent to your bot arrives in your agent and gets an automatic reply.
  • The agent handles one message per chat at a time — if someone sends a burst of messages while it's still thinking, they line up and get processed in order.
  • If a user sends a photo, document, or voice note, the agent just answers — there's no separate "uploaded" confirmation message.

What your agent can do on Telegram

CapabilitySupported
Reply to messages
Send text messages
Send images
Send files and documents
Send audio
Send tappable buttons

Managing your connection

  • Remove disconnects the Telegram bot from your agent. The bot still exists on Telegram but stops replying until you reconnect it.
  • To rotate the bot token, generate a new one in BotFather, then paste the new one into Nirvai — the old one stops working as soon as you regenerate it.

Troubleshooting

ProblemFix
The bot doesn't replyCheck that the bot token is correct and hasn't been regenerated in BotFather. A new token replaces the old one — paste the latest one into Nirvai.
"Bot token already in use"Each bot token can power only one agent. Disconnect it from the other agent first, or create a new bot in BotFather.
People can't find the botHave them search for the exact username, including the bot ending, in Telegram.
The bot replies but skips messagesA long reply may still be in progress — the next message will be picked up as soon as the agent finishes.

What's next