Skip to content

Commit

Permalink
添加拍一拍消息类型的判断
Browse files Browse the repository at this point in the history
  • Loading branch information
eatmoreapple committed Dec 17, 2021
1 parent bd960ef commit 3718d6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 3718d6c

Please sign in to comment.