---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Keep Telegram chats separate when switching bots

Telegram messages stay with the right bot after a workspace changes its bot connection.

When a workspace changes the Telegram bot in a group, the new bot can receive a message number the old bot used. We fixed chat capture so that number stays attached to the right bot and does not inherit the earlier message's handling or delivery state.

No chat migration is needed for the fix. Tell the coding agent you build with to keep the agent and ontology packages aligned when changing the bot connection. The group's existing timeline remains in place.
