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

@ -51,6 +51,7 @@ test('QQ runtime waits for gateway ready, installs typing, and stops its client'
assert.equal(bot.middlewares[0].options.keepAlive, true);
assert.equal(bot.middlewares[0].options.predicate({ message: { senderId: 'owner' } }), true);
assert.equal(bot.middlewares[0].options.predicate({ message: { senderId: 'other' } }), false);
assert.equal(botOptions.markdownSupport, false);
botOptions.logger.debug('raw gateway payload');
botOptions.logger.info('gateway ready');
assert.deepEqual(sdkLogs, [['info', 'gateway ready']]);