mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-07-27 05:50:56 +00:00
- Added a mechanism to check the byte length of direct messages (DMs) before sending, ensuring they do not exceed the firmware's maximum limit. - Implemented a method to split oversized messages into smaller chunks, preserving UTF-8 encoding and avoiding mid-codepoint splits. - Enhanced logging to provide warnings when messages are auto-split, including details on the number of chunks created. - Updated the DM sending logic to handle both single and split messages efficiently. - Introduced a new static method for splitting text into UTF-8 chunks, improving message handling across the application.