Skip to content

bug(telegram): typing indicator shows in main chat instead of current forum topic #8936

@LiDeChi

Description

@LiDeChi

Description

When OpenClaw is replying inside a Telegram forum topic (Topics enabled), the bot's typing... indicator is shown in the main chat / “New chat” area instead of inside the current topic thread. This makes it look like the bot is typing in a different conversation.

Steps to reproduce

  1. Create / use a Telegram group with Topics enabled (forum).
  2. Add an OpenClaw Telegram bot to the group.
  3. Open a specific topic, send a message that triggers an agent response.
  4. While the agent is generating, watch the UI typing indicator.

Expected

Typing indicator appears within the same topic thread where the user message was sent.

Actual

Typing indicator appears in the group's main chat (often shown as “New chat”), not the topic.

Environment

  • OpenClaw: 2026.2.2
  • Telegram: Bot API (grammY)
  • Context: Telegram forum topics (message_thread_id)

Suspected cause / fix

Telegram Bot API sendChatAction supports message_thread_id for forum topics. It looks like OpenClaw's Telegram provider is calling sendChatAction without passing message_thread_id, so Telegram associates the chat action with the main thread.

Proposed fix: when replying in a topic session (or when inbound message context includes a topic/thread id), pass message_thread_id on sendChatAction (and any other chat-action calls) so the typing indicator is scoped to the topic.

Related: #6597 (topics/thread routing), #8820 (forum topic context issues)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions