Skip to content

Commit

Permalink
add MessageContent.MsgType
Browse files Browse the repository at this point in the history
  • Loading branch information
chyroc committed May 10, 2024
1 parent a2bdf1f commit 06cbcfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions type_message_content.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type MessageContent struct {
Location *MessageContentLocation // 位置消息
VideoChat *MessageContentVideoChat // 视频通话消息
Post *MessageContentPost // 富文本
MsgType MsgType
}

// MessageContentText 文本消息
Expand Down

0 comments on commit 06cbcfe

Please sign in to comment.