Skip to content

Commit

Permalink
Merge pull request #56 from juzibot/ref/rich-text-payload
Browse files Browse the repository at this point in the history
Ref/rich text payload
  • Loading branch information
hcfw007 authored Jan 18, 2024
2 parents 2af4356 + ef44029 commit 906d1ff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@juzi/wechaty-grpc",
"version": "1.0.75",
"version": "1.0.76",
"description": "gRPC for Wechaty",
"type": "module",
"exports": {
Expand Down
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 906d1ff

Please sign in to comment.