Skip to content

Telegram forum: no reliable topic-name -> topic_id resolution for agent routing #43231

Description

@IIIyban

Summary

In Telegram forum group chats, the assistant cannot reliably resolve a topic by human-readable name (e.g. "AI безопасность") to its topic_id for routing messages. This causes repeated misrouting or extra user clarification loops.

Environment

  • OpenClaw runtime in Telegram forum groups
  • Channel metadata includes current topic_id, but there is no built-in topic directory/list exposed to the agent tooling context.

Reproduction

  1. Use a Telegram forum group with multiple topics.
  2. Ask the assistant to send/update something into another topic by name (not by numeric id), e.g. "Отправь в ветку AI безопасность".
  3. Assistant cannot resolve target topic deterministically, unless a manual local mapping exists and is perfectly maintained.

Actual behavior

  • Agent often needs to ask user for numeric topic id.
  • If manual mapping is stale/incomplete, routing can drift (wrong topic or no send).

Expected behavior

One of the following should exist as first-class support:

  1. Inject forum_topics map (topic_id <-> title) into session context for forum chats, OR
  2. Add tool action to list topics in current chat (e.g. message action=topics), OR
  3. Expose topic catalog via channel metadata endpoint available to agent tools.

Impact

  • Frequent operational friction in daily use.
  • Repeated clarification loops for the same group.
  • Higher chance of misrouted messages across project topics.

Current workaround

Maintain a local manual topic map file and ask user to provide ids for new topics. Workaround is error-prone and not durable.

Priority

High (blocks reliable multi-topic operations in Telegram forum workflows).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions