From ff540d039f0736531040e646e95f520bb00d1c73 Mon Sep 17 00:00:00 2001 From: wangxiaowen Date: Tue, 9 Apr 2024 12:38:04 +0800 Subject: [PATCH] fix lack of GetSenderUid function --- v2/events/events.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v2/events/events.go b/v2/events/events.go index 368cd70..9bfd044 100644 --- a/v2/events/events.go +++ b/v2/events/events.go @@ -72,6 +72,7 @@ type IGroupMsg interface { GetGroupInfo() GroupInfo GetSenderNick() string GetSenderUin() int64 + GetSenderUid() string ParseTextMsg() ITextMsg ParsePicMsg() IPicMsg ContainedPic() bool @@ -256,6 +257,9 @@ func (e *EventStruct) ExcludeBot() IEvent { func (e *EventStruct) GetSenderUin() int64 { return e.CurrentPacket.EventData.MsgHead.SenderUin } +func (e *EventStruct) GetSenderUid() string { + return e.CurrentPacket.EventData.MsgHead.SenderUid +} func (e *EventStruct) GetSenderNick() string { return e.CurrentPacket.EventData.MsgHead.SenderNick }