From 071686c89e51d0e8f56f4550739cec202ff1d663 Mon Sep 17 00:00:00 2001 From: aishannon Date: Thu, 2 Apr 2026 00:47:25 +0800 Subject: [PATCH] feat(channel/qq): optimize message sending, seq generation, and message parsing 1. Define `kindType` as constants. 2. Set `seq` generation to global incremental, simplifying `seq` handling. (QQ platform validation rule is `chatID + replyMsgID + seq`, and `seq` does not affect display order.) 3. Increase API timeout from 5 seconds to 20 seconds to reduce send timeouts. 4. Prioritize sending messages using Markdown; fall back to plain text if Markdown sending fails. Also remove the `QQConfig.SendMarkdown` configuration option. 5. Restrict `InputNotify` to be sent only for direct messages. 6. Adjust message parsing to support emoji parsing and utilize the platform-provided ASR (Automatic Speech Recognition) content. --- pkg/channels/qq/qq.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/channels/qq/qq.go b/pkg/channels/qq/qq.go index 45d056717..bb26c6938 100644 --- a/pkg/channels/qq/qq.go +++ b/pkg/channels/qq/qq.go @@ -1082,3 +1082,8 @@ func processEmoji(match string) string { } return "" } + +// VoiceCapabilities returns the voice capabilities of the channel. +func (c *QQChannel) VoiceCapabilities() channels.VoiceCapabilities { + return channels.VoiceCapabilities{ASR: true, TTS: true} +}