Commit Graph

2 Commits

Author SHA1 Message Date
Alex AN
84a60129be fix(telegram): skip empty HTML chunks from thematic breaks (#3011)
Thematic breaks (---, ***, ___) and empty block-level markdown elements
produce empty HTML after markdown→Telegram conversion.  When these empty
chunks are sent to the Telegram Bot API, it rejects with '400: message
text is empty', which aborts the delivery loop and silently drops all
subsequent message chunks.

Fix:
1. markdownToTelegramChunks() now filters out chunks with empty HTML
   before returning, preventing empty chunks from reaching the delivery
   pipeline at all.
2. sendTelegramText() adds a defensive guard that skips empty HTML,
   protecting against any other code path that might produce one.

Closes #3011
2026-01-28 15:50:57 +08:00
Peter Steinberger
2140caaf67 fix: telegram html formatting (#435, thanks @RandyVentures) 2026-01-08 02:34:32 +01:00