1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-05 10:40:24 +08:00

fix: qq event

This commit is contained in:
源文雨
2023-11-16 22:34:18 +09:00
parent 737c05f1c1
commit d2f8a94e75
2 changed files with 2 additions and 1 deletions

View File

@@ -98,6 +98,7 @@ func (bot *Bot) processEvent(payload *WebsocketPayload) {
} else if msgv2.Author.MemberOpenID != "" {
ctx.Message.Author.ID = msgv2.Author.MemberOpenID
}
ctx.Value = ctx.Message
} else {
ctx.Message = (*Message)(x.UnsafePointer())
if ctx.Message.MentionEveryone {

View File

@@ -53,7 +53,7 @@ type MessageV2 struct {
type MessagePostV2 struct {
Type MessageTypeV2 `json:"msg_type"`
Seq int `json:"msg_seq,omitempty"` // 回复消息的序号,与 msg_id 联合使用避免相同消息id回复重复发送不填默认是1。相同的 msg_id + msg_seq 重复发送会失败。
Content string `json:"content,omitempty"`
Content string `json:"content"`
ReplyEventID string `json:"event_id,omitempty"` // 前置收到的事件ID用于发送被动消息
ReplyMessageID string `json:"msg_id,omitempty"`