add-telegram-swarm

Route Telegram messages through pool bots with distinct agent identities.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/abhaymundhara/babybot --skill add-telegram-swarm-abhaymundhara
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-telegram-swarm
Source: https://github.com/abhaymundhara/babybot/tree/main/container/skills/add-telegram-swarm
Command: npx skills add https://github.com/abhaymundhara/babybot --skill add-telegram-swarm-abhaymundhara

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add Agent Swarm (Teams) support to Telegram. Each subagent in a team gets its own bot identity in the Telegram group, so users can visually distinguish which agent is speaking.

Prerequisite: Telegram must already be set up via the /add-telegram skill. If src/telegram.ts does not exist or TELEGRAM_BOT_TOKEN is not configured, tell the user to run /add-telegram first.

Core Features & Use Cases

  • The main bot receives messages and sends lead agent responses (already set up by /add-telegram)
  • Pool bots are send-only — each gets a Grammy Api instance (no polling)
  • When a subagent calls send_message with a sender parameter, the host assigns a pool bot and renames it to match the sender's role
  • Messages appear in Telegram from different bot identities

Quick Start

Install and configure Telegram integration with /add-telegram, initialize the pool with tokens, and test by sending a message that creates a dedicated pool bot for a sender.

Frequently Asked Questions about add-telegram-swarm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make multi-agent teams in Telegram reply with separate bot identities?

Multi-agent teams in Telegram use a pool of send-only bots to give each subagent a distinct identity. When a subagent sends a message with a sender parameter, the system assigns and renames a pool bot to match that role.

What do I need to set up before adding agent swarm support to Telegram?

Before adding agent swarm support, you must configure base Telegram integration with a valid TELEGRAM_BOT_TOKEN and src/telegram.ts file. Run the add-telegram skill first to establish the primary bot before initializing pool bots.

How does sender-based routing work for Telegram pool bots?

Sender-based routing assigns a pool bot to a subagent when it calls send_message with a sender parameter. The host renames the assigned pool bot to match the sender's role, so messages appear from distinct bot identities in the Telegram group.

Can subagents in a Telegram agent swarm poll for messages independently?

No, subagents cannot poll independently. Pool bots are send-only, meaning each gets a Grammy Api instance for delivering messages but does not poll. Only the main lead bot receives incoming messages from the Telegram group.

What is the best way to visually distinguish which agent is speaking in a Telegram group?

The best way to visually distinguish agents in a Telegram group is using a pool bot architecture. Each subagent receives a dedicated pool bot identity that it uses to send messages, allowing users to see which agent replied.