picoclaw/pkg/channels/telegram
I Putu Eddy Irawan 33109a1676 Address Copilot review: handle HTML expansion exceeding Telegram limit
When markdownToTelegramHTML expands a chunk beyond 4096 chars (e.g.
**a** → <b>a</b>), re-split the markdown with a proportionally smaller
maxLen so each resulting HTML chunk fits within Telegram's limit.

Extract sendHTMLChunk helper to avoid duplicating the HTML-send +
plain-text-fallback logic.

Add test case for markdown-short-but-HTML-long scenario to verify
the re-splitting behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 22:35:41 +07:00
..
init.go refactor(channels): add channel subpackages and update gateway imports 2026-02-20 23:25:44 +08:00
telegram.go Address Copilot review: handle HTML expansion exceeding Telegram limit 2026-03-02 22:35:41 +07:00
telegram_commands.go Update config file reference from config.yaml to config.json 2026-02-28 00:36:39 +08:00
telegram_test.go Address Copilot review: handle HTML expansion exceeding Telegram limit 2026-03-02 22:35:41 +07:00