feat: add optional Telegram rich Markdown output - #80
Merged
Merged
Conversation
TerrifiedBug
marked this pull request as ready for review
September 19, 2026 00:08
This was referenced Sep 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #79.
Adds optional rich Markdown output on Bot API 10.1+. MarkdownV2 stays the default.
/telegram set richMessages offkeeps MarkdownV2.autoselects rich output for tables, task lists, details, paired dollar math, and custom emoji tags outside code.onprefers rich output for all Markdown.format: "text"sends bypass rich formatting.textChunkLimitstill wins. Longer answers and existing previews keep labeled legacy-sized chunks.Verification
Bun 1.3.14:
bun run checkpassed typechecking and all 369 tests. Focused coverage includes reload behavior, literal/code exclusions, safe fallback of a 6000-character report, reply/topic routing, rate limits, Unicode reconstruction, fence repair, and preview finalization without duplicate content.An isolated smoke driver exercised the issue's report fixture, ordinary bold text, literal text, and a DM draft followed by one persistent rich answer. Telegram fetches were intercepted with a dummy token; no real messages were sent. The driver was removed afterward.
Live verification
The maintainer tested rich messages locally, confirmed they work, and approved merging and closing #79. Telegram controls native rendering and checkbox interaction; the bridge adds no checklist-management workflow or state store.
Branched directly from master at 96db014. This does not include or repair #78; that PR remains separate and unmerged.