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() +}