fix(tgapp): polish Telegram MarkdownV2 rendering and startup helpers#160
Merged
lsdefine merged 2 commits intolsdefine:mainfrom Apr 25, 2026
Merged
fix(tgapp): polish Telegram MarkdownV2 rendering and startup helpers#160lsdefine merged 2 commits intolsdefine:mainfrom
lsdefine merged 2 commits intolsdefine:mainfrom
Conversation
lsdefine
approved these changes
Apr 25, 2026
Owner
lsdefine
left a comment
There was a problem hiding this comment.
LGTM. Confirmed it applies cleanly and the Telegram polish changes are scoped.
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.
Context
Telegram replies already use a MarkdownV2 rendering path, but a few edge cases still made the output less
polished:
[FILE:...]markers were removed from the message body after attachment extraction, so users could receiveattachments without an inline filename reference.
__bold__and~~strikethrough~~were not converted into Telegram MarkdownV2entities.
This PR keeps the change radius inside
frontends/tgapp.py. No new dependencies are added.Summary
Polish Telegram message rendering and startup wiring by reusing shared frontend helpers, keeping file marker
basenames visible in replies, and expanding Markdown-to-MarkdownV2 conversion for common bold and strikethrough
styles.
Changes
frontends/tgapp.py[FILE:...]markers visible in the reply body as basenames while still resolving and sending matchingfiles as Telegram attachments.
__bold__input to Telegram MarkdownV2 bold output.~~strikethrough~~input to Telegram MarkdownV2 strikethrough output.