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
parent c8b6523542
commit 6c394eaf0a

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,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{