openclaw - 💡(How to fix) Fix [Bug]: Telegram group mention replies are routed to user's DM instead of the group

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

{
  channels: {
    telegram: {
      enabled: true,
      dmPolicy: "allowlist",
      groupPolicy: "open",
      allowFrom: ["xxx"],
      groups: {
        "-100XXXXX": {
          groupPolicy: "open",
          requireMention: false
        }
      }
    }
  }
}
RAW_BUFFERClick to expand / collapse

Problem

When a user mentions the bot in a Telegram group, the agent receives the message correctly but the reply is sent as a Direct Message (DM) to the user instead of being posted back to the group chat.

Environment

  • OpenClaw version: v2026.5.7 (eeef486)
  • Channel: Telegram
  • Chat type: Group (not forum topic)

Steps to Reproduce

  1. Add the bot to a Telegram group
  2. Configure group access with groupPolicy: "open" and requireMention: false
  3. Mention the bot in the group (e.g., @BotName message)
  4. Observe: the agent processes the message, but the reply lands in the user's DMs

Expected Behavior

The agent reply should be sent back to the same Telegram group chat where the mention occurred.

Actual Behavior

The reply is routed to the user's private DM with the bot instead of the group.

Configuration

{
  channels: {
    telegram: {
      enabled: true,
      dmPolicy: "allowlist",
      groupPolicy: "open",
      allowFrom: ["xxx"],
      groups: {
        "-100XXXXX": {
          groupPolicy: "open",
          requireMention: false
        }
      }
    }
  }
}

Additional Context

  • The bot has admin/privacy mode disabled in Telegram
  • Group message is received by the gateway (confirmed in logs)
  • Agent processes the message correctly
  • The delivery path seems to use user_id as the target instead of group_chat_id
  • This appears to be a reply routing/delivery bug, not a mention processing bug
  • Related to the same-chat message delivery changes in v2026.5.7 (Changelog: "Telegram: treat successful same-chat message tool outbound sends during an inbound Telegram turn as delivered...")

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING