fix(qq): harden markdown reply delivery

This commit is contained in:
xmanrui 2026-08-26 01:26:47 +08:00
parent f4deb4ac20
commit ea5176be93
6 changed files with 907 additions and 253 deletions

View file

@ -124,6 +124,9 @@ export class QqRuntime {
logger: sdkLogger,
transport: 'websocket',
tokenPrefetch: 'sync',
// sendText is reserved for literal notices/connection tests. Markdown
// replies use the explicit msg_type=2 path in sendMarkdownReply().
markdownSupport: false,
});
if (!bot || typeof bot.start !== 'function' || typeof bot.stop !== 'function') {
throw new TypeError('QQ bot factory returned an invalid client');