From bd960ef7cffca3f06f9668cfb2a1f9aeaf0d880f Mon Sep 17 00:00:00 2001 From: eatmoreapple <15055461510@163.com> Date: Fri, 17 Dec 2021 11:44:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=A0=E5=85=A5=E7=BE=A4?= =?UTF-8?q?=E8=81=8A=E4=BA=8B=E4=BB=B6=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- message.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/message.go b/message.go index d56c77f..26824a1 100644 --- a/message.go +++ b/message.go @@ -700,3 +700,8 @@ func (m *Message) IsAt() bool { func (m *Message) IsPaiYiPai() bool { return m.IsSystem() && strings.Contains(m.Content, "拍了拍") } + +// IsJoinGroup 判断是否有人加入了群聊 +func (m *Message) IsJoinGroup() bool { + return m.IsSystem() && strings.Contains(m.Content, "加入了群聊") && m.IsSendByGroup() +}