diff --git a/helper.go b/helper.go index 1902496e..ebb8a161 100644 --- a/helper.go +++ b/helper.go @@ -39,6 +39,7 @@ func UnwrapMessageContent(msgType MsgType, content string) (*MessageContent, err Location: new(MessageContentLocation), VideoChat: new(MessageContentVideoChat), Post: new(MessageContentPost), + MsgType: msgType, } switch msgType { case MsgTypeText: diff --git a/type_message_content.go b/type_message_content.go index 7b4544e0..a701c6ed 100644 --- a/type_message_content.go +++ b/type_message_content.go @@ -31,6 +31,7 @@ type MessageContent struct { Location *MessageContentLocation // 位置消息 VideoChat *MessageContentVideoChat // 视频通话消息 Post *MessageContentPost // 富文本 + MsgType MsgType } // MessageContentText 文本消息