mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
feat: add GroupID field in reply message
This commit is contained in:
parent
2cdb7407f9
commit
a3eacd706b
@ -53,6 +53,7 @@ type GroupFileElement struct {
|
||||
type ReplyElement struct {
|
||||
ReplySeq int32
|
||||
Sender int64
|
||||
GroupID int64 // 私聊回复群聊时
|
||||
Time int32
|
||||
Elements []IMessageElement
|
||||
|
||||
|
@ -340,6 +340,7 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement {
|
||||
ReplySeq: elem.SrcMsg.OrigSeqs[0],
|
||||
Time: elem.SrcMsg.GetTime(),
|
||||
Sender: elem.SrcMsg.GetSenderUin(),
|
||||
GroupID: elem.SrcMsg.GetToUin(),
|
||||
Elements: ParseMessageElems(elem.SrcMsg.Elems),
|
||||
}
|
||||
res = append(res, r)
|
||||
|
Loading…
x
Reference in New Issue
Block a user