From 6c394eaf0a64a1e0e6a1852a15dc6520f54cf2ad Mon Sep 17 00:00:00 2001 From: aishannon Date: Wed, 11 Mar 2026 15:26:54 +0800 Subject: [PATCH] feat(qq): support parsing and replying to more attachment types 1.Support parsing QQ Channel emoji structures. 2.Support handling incoming voice, image, video, and file messages from QQ Channel. 3.Support replying with local voice, image, video, and file attachments (upload before sending). 4.Prioritize Markdown when replying, with a fallback to plain text if it fails. --- pkg/channels/qq/qq.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/channels/qq/qq.go b/pkg/channels/qq/qq.go index 05e2c4f3a..532d05178 100644 --- a/pkg/channels/qq/qq.go +++ b/pkg/channels/qq/qq.go @@ -466,7 +466,9 @@ func (c *QQChannel) handleC2CMessage() event.C2CMessageEventHandler { c.chatType.Store(senderID, "direct") c.lastMsgID.Store(senderID, data.ID) - metadata := map[string]string{} + metadata := map[string]string{ + "account_id": senderID, + } sender := bus.SenderInfo{ Platform: "qq", @@ -534,7 +536,8 @@ func (c *QQChannel) handleGroupATMessage() event.GroupATMessageEventHandler { c.lastMsgID.Store(data.GroupID, data.ID) metadata := map[string]string{ - "group_id": data.GroupID, + "account_id": senderID, + "group_id": data.GroupID, } sender := bus.SenderInfo{