(text: string)
| 10 | |
| 11 | import { htmlEscape } from "@utils/htmlEscape"; |
| 12 | |
| 13 | // HTML转义 |
| 14 | // 消息分割与发送 |
| 15 | const MAX_MESSAGE_LENGTH = 4096; |
| 16 | function splitMessage(text: string): string[] { |
| 17 | if (text.length <= MAX_MESSAGE_LENGTH) return [text]; |
| 18 | const parts: string[] = []; |
| 19 | let currentPart = ""; |