Let multiple bots coexist in one Telegram group — each bot knows when to step back.
Imagine 3 AI bots in one Telegram group: @writer_bot, @code_bot, and @research_bot. Before v2.24.0, you had only 2 bad choices:
| Config | Behavior | Problem |
|---|---|---|
require_mention: false | Bot responds to every message | All 3 bots jump in to answer |
require_mention: true | Bot only responds when mentioned | Must always type @bot_name — tedious |
Rule: Respond to all messages, UNLESS someone is mentioning another bot/user.
↑ No mention → all bots respond
↑ Mention @writer_bot → only writer responds, others yield
{
"channels": {
"telegram": {
"token": "BOT_TOKEN",
"mention_mode": "yield", // ← Bật yield mode
"require_mention": false // yield ghi đè setting này
}
}
}strict defaultFollows require_mention. On = must mention, Off = respond to all.
yield NEWRespond to all messages, yield when someone @mentions another bot/user.
strict
yield
strict
Topic > Group > Channel default
A group as "AI workspace" for the team. Everyone chats normally → all bots listen. Need deploy? @devops_bot deploy staging.
Two language bots. Both respond by default. Want only Vietnamese? @vi_bot explain this.
Group discussion where all bots contribute opinions. Need specific input: mention directly.
No database migration needed. Just update config or enable on Web UI: Channels → Telegram → Group Response Behavior → "Multi-bot".
git pull origin main go build -o goclaw . # Thêm mention_mode: "yield" vào config # Hoặc cấu hình trên Web UI