Files
chenhg5-cc-connect/platform
cg33 035ef11fc9 fix(telegram): handle message too long errors from HTML table expansion (#873)
When Markdown tables are converted to HTML with column alignment padding,
the output can exceed Telegram's 4096-char limit even when the original
Markdown was under the engine's 4000-char split threshold.

Changes:
- Reply/Send: detect "message is too long" and chunk the HTML content
- SendWithButtons: chunk with buttons on first message only
- SendPreviewStart: fall back to plain text (preview shouldn't be chunked)
- Add sendChunked and sendChunkedWithButtons helper functions
- Use SplitMessageCodeFenceAware to respect code block boundaries

Fixes #866

Co-authored-by: Claude <noreply@anthropic.com>
2026-06-07 15:20:19 +08:00
..