mirror of
https://github.com/tiennm99/openai-status-bot.git
synced 2026-10-20 02:18:07 +00:00
Fixed-index truncation could split an HTML tag or entity or drop a closing tag, making Telegram reject the whole message with 'can't parse entities'. Cut on a newline boundary where tags are balanced, reserve room for a truncation notice, and strip any trailing partial markup.