NeuChar icon indicating copy to clipboard operation
NeuChar copied to clipboard

MessageHandlerHelper 中添加使用 Unicode 拆分字符的方法

Open xbotter opened this issue 1 year ago • 1 comments

🔀 Add Unicode chunking for handling limited text

  • Added a new method ChunkStringByUnicode in MessageHandlerHelper to split text into chunks based on Unicode characters.
  • Added a new method TryHandleLimitedText in MessageHandlerHelper to handle long text by splitting it into chunks and processing each chunk separately.
  • Added unit tests for the new methods in MessageHandlerHelperTests.

The changes enable handling of long text content by splitting it into smaller chunks based on Unicode characters. This allows for more efficient processing and handling of text content within the specified byte limit.

xbotter avatar Aug 17 '23 05:08 xbotter

@JeffreySu Please review it and let me know if there is anything that needs to be changed.

xbotter avatar Aug 30 '23 23:08 xbotter