openclaw - 💡(How to fix) Fix Telegram messages truncated/split incorrectly in forum topics [1 participants]

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…
GitHub stats
openclaw/openclaw#62036Fetched 2026-04-08 03:09:57
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Code Example

curl -s "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" \
  -d "chat_id=-1003768324807" \
  -d "message_thread_id=1270" \
  -d "text=🧪 Trading Bot Test..." \
  -d "parse_mode=HTML"

---

{
  "telegram": {
    "enabled": true,
    "streaming": "off",
    "groups": {
      "-1003768324807": {
        "topics": {
          "1270": {
            "agentId": "crypto"
          }
        }
      }
    }
  }
}
RAW_BUFFERClick to expand / collapse

Bug Description

Messages sent by OpenClaw agents to Telegram forum topics are being truncated or split incorrectly, resulting in incomplete messages arriving in the topic.

Evidence

Test 1: Direct Telegram API (✅ Works)

curl -s "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" \
  -d "chat_id=-1003768324807" \
  -d "message_thread_id=1270" \
  -d "text=🧪 Trading Bot Test..." \
  -d "parse_mode=HTML"

Result: Message arrives complete and intact in forum topic 1270.

Test 2: OpenClaw Agent via Telegram Plugin (❌ Truncated)

Agents sending messages to forum topics via OpenClaw's Telegram plugin produce truncated messages that arrive in wrong order or incomplete.

Example broken message:

"Du hast recht - ich lese zu viel und antworte zu wenig. Hier ist die Implementierung:"

Message cuts off mid-sentence, no code follows.

Configuration

{
  "telegram": {
    "enabled": true,
    "streaming": "off",
    "groups": {
      "-1003768324807": {
        "topics": {
          "1270": {
            "agentId": "crypto"
          }
        }
      }
    }
  }
}

Environment

  • OpenClaw: 2026.4.5
  • Node.js: v25.8.1
  • OS: macOS 15.3 (arm64)

Related Issues

  • #27157 - Similar issue (closed)

Expected Behavior

Messages sent by OpenClaw agents should arrive with the same integrity as direct API calls.

Actual Behavior

Messages are truncated, split incorrectly, or arrive incomplete.

extent analysis

TL;DR

The OpenClaw Telegram plugin may need adjustments to handle message formatting or encoding to prevent truncation and incorrect splitting of messages sent to forum topics.

Guidance

  • Review the OpenClaw Telegram plugin's message processing logic to ensure it correctly handles long messages and special characters.
  • Verify that the parse_mode parameter is being set to HTML when sending messages via the OpenClaw agent, as this worked correctly in the direct Telegram API test.
  • Check the plugin's configuration and documentation for any settings related to message length limits or formatting options.
  • Compare the message sending implementation in the OpenClaw agent with the working direct Telegram API example to identify potential differences.

Example

No code snippet is provided due to the lack of specific implementation details in the issue.

Notes

The root cause of the issue is unclear, but it may be related to differences in how the OpenClaw Telegram plugin handles message formatting or encoding compared to the direct Telegram API call.

Recommendation

Apply workaround: Adjust the OpenClaw Telegram plugin's message processing logic to match the working direct Telegram API example, ensuring correct handling of long messages and special characters.

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

openclaw - 💡(How to fix) Fix Telegram messages truncated/split incorrectly in forum topics [1 participants]