Skip to content

Commit a296d40

Browse files
authored
Merge branch 'master' into add-room-member
2 parents 6a559b1 + 9d275cb commit a296d40

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wechaty-grpc",
3-
"version": "0.20.20",
3+
"version": "0.21.0",
44
"description": "gRPC for Wechaty",
55
"main": "dist/src/mod.js",
66
"typings": "dist/src/mod.d.js",

proto/wechaty/puppet.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,14 @@ service Puppet {
304304
body: "*"
305305
};
306306
}
307+
rpc MessageForward (puppet.MessageForwardRequest) returns (puppet.MessageForwardResponse) {
308+
option (google.api.http) = {
309+
post: "/messages/{message_id}/forward/{conversation_id}"
310+
additional_bindings {
311+
post: "/conversations/{conversation_id}/forward/{message_id}"
312+
}
313+
};
314+
}
307315

308316
rpc MessageSendContact (puppet.MessageSendContactRequest) returns (puppet.MessageSendContactResponse) {
309317
option (google.api.http) = {

proto/wechaty/puppet/message.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,10 @@ message MessageRecallRequest {
170170
message MessageRecallResponse {
171171
bool success = 1;
172172
}
173+
message MessageForwardRequest{
174+
string message_id = 1;
175+
string conversation_id = 2;
176+
}
177+
message MessageForwardResponse {
178+
google.protobuf.StringValue id = 1;
179+
}

tests/puppet-server-impl.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ export const puppetServerImpl: IPuppetServer = {
166166
void callback
167167
throw new Error('not implemented.')
168168
},
169+
messageForward: (call, callback) => {
170+
void call
171+
void callback
172+
throw new Error('not implemented.')
173+
},
169174

170175
messageSendContact: (call, callback) => {
171176
void call

0 commit comments

Comments
 (0)