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:
1
event.go
1
event.go
@@ -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 {
|
||||
|
||||
@@ -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"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user