添加拍一拍消息类型的判断

This commit is contained in:
eatmoreapple 2021-12-17 11:49:48 +08:00
parent bd960ef7cf
commit 3718d6c2bc

View File

@ -705,3 +705,8 @@ func (m *Message) IsPaiYiPai() bool {
func (m *Message) IsJoinGroup() bool {
return m.IsSystem() && strings.Contains(m.Content, "加入了群聊") && m.IsSendByGroup()
}
// IsTickled 判断消息是否为拍一拍
func (m *Message) IsTickled() bool {
return m.IsPaiYiPai()
}