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.
This commit is contained in:
aishannon 2026-03-11 15:26:54 +08:00 committed by shannonchen
parent e0b12c99b2
commit 12e918c09b

View file

@ -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,6 +536,7 @@ func (c *QQChannel) handleGroupATMessage() event.GroupATMessageEventHandler {
c.lastMsgID.Store(data.GroupID, data.ID)
metadata := map[string]string{
"account_id": senderID,
"group_id": data.GroupID,
}