(text: string)
| 5 | |
| 6 | import { htmlEscape } from "@utils/htmlEscape"; |
| 7 | |
| 8 | // HTML转义函数 |
| 9 | // 消息分割函数(限制调整为4000字符) |
| 10 | const splitMessagesByMention = (mentions: string[], maxLength = 4000): string[] => { |
| 11 | const messages: string[] = []; |
| 12 | let currentMessage = ""; |
| 13 | |
| 14 | for (const mention of mentions) { |