From 6ed620f5dc249fe0a9bca159f824b6fe7e6eafb4 Mon Sep 17 00:00:00 2001 From: eatmoreapple Date: Wed, 10 Aug 2022 21:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=B6=88=E6=81=AF=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E4=B8=BA=E8=AF=AD=E9=9F=B3=E6=88=96=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E9=80=9A=E8=AF=9D=E9=82=80=E8=AF=B7?= 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 4975ba4..fd01f32 100644 --- a/message.go +++ b/message.go @@ -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 +}