From 427d21a26a6cc396a389c6a7480972200f8d11ea Mon Sep 17 00:00:00 2001 From: NickWang Date: Thu, 18 Jan 2024 15:55:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20TextContent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proto/wechaty/puppet/message.proto | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/proto/wechaty/puppet/message.proto b/proto/wechaty/puppet/message.proto index 74c7a67..bf89e29 100644 --- a/proto/wechaty/puppet/message.proto +++ b/proto/wechaty/puppet/message.proto @@ -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; } @@ -70,6 +85,8 @@ message MessagePayloadResponse { optional string quote_id = 11; // 被引用的消息id optional string additional_info = 12; + + repeated TextContent text_contents = 13; } message MessageImageRequest {