判断消息是否为语音或视频通话邀请

This commit is contained in:
eatmoreapple 2022-08-10 21:32:09 +08:00
parent 0aa3dc3361
commit 6ed620f5dc

View File

@ -732,3 +732,8 @@ func (m *Message) IsJoinGroup() bool {
func (m *Message) IsTickled() bool {
return m.IsPaiYiPai()
}
// IsVoipInvite 判断消息是否为语音或视频通话邀请
func (m *Message) IsVoipInvite() bool {
return m.MsgType == MsgTypeVoipInvite
}