Skip to content

Commit

Permalink
refactor: 💡 TextContent
Browse files Browse the repository at this point in the history
  • Loading branch information
hcfw007 committed Jan 18, 2024
1 parent 2af4356 commit 427d21a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions proto/wechaty/puppet/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ enum MessageType { // 消息类型
MESSAGE_TYPE_CALL_RECORD = 20;// 通话记录
}

enum TextContentType {
TEXT_CONTENT_TYPE_REGULAR = 0;
TEXT_CONTENT_TYPE_AT = 1;
}

message TextContentData {
string contact_id = 1;
}

message TextContent {
TextContentType type = 1;
string text = 2;
TextContentData data = 3;
}

message MessagePayloadRequest {
string id = 1;
}
Expand All @@ -70,6 +85,8 @@ message MessagePayloadResponse {
optional string quote_id = 11; // 被引用的消息id

optional string additional_info = 12;

repeated TextContent text_contents = 13;
}

message MessageImageRequest {
Expand Down

0 comments on commit 427d21a

Please sign in to comment.