mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-02 17:32:39 +00:00
Telegram has a 4096 character limit per message. This fix: - Splits messages longer than 4000 chars into multiple chunks - Prefers breaking at newline boundaries to preserve formatting - Falls back to space boundaries if no newlines available - Forces split at max length if no good boundaries exist - Adds comprehensive tests for message splitting logic