mirror of
https://github.com/chenhg5/cc-connect.git
synced 2026-07-03 12:28:10 +08:00
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>