@mengkodingan/ckptw
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -44,3 +44,3 @@ /// <reference types="node" /> | ||
simulateRecording(): void; | ||
editMessage(key: WAProto.IMessageKey, newText: string): Promise<void>; | ||
editMessage(key: WAProto.IMessageKey, newText: string): Promise<WAProto.WebMessageInfo | undefined>; | ||
sendPoll(jid: string, args: { | ||
@@ -47,0 +47,0 @@ name: string; |
@@ -131,11 +131,6 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this._client.relayMessage(this.id, { | ||
protocolMessage: { | ||
key, | ||
type: 14, | ||
editedMessage: { | ||
conversation: newText | ||
} | ||
} | ||
}, {}); | ||
return yield this._client.sendMessage(this.id, { | ||
text: newText, | ||
edit: key, | ||
}); | ||
}); | ||
@@ -142,0 +137,0 @@ } |
{ | ||
"name": "@mengkodingan/ckptw", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "An easy way to make a WhatsApp Bot.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
95021
186
1571