mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-11 15:53:17 +08:00
fix(qq): harden markdown reply delivery
This commit is contained in:
parent
f4deb4ac20
commit
ea5176be93
6 changed files with 907 additions and 253 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue