diff --git a/package.json b/package.json index df5d0becef176493aa6cc33687bb0c484cff5283..6f1e8d80f8589757a8bcaaee202de33c52105b3f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechaty", - "version": "0.48.11", + "version": "0.48.13", "description": "Wechaty is Conversational SDK Chatbot Makers, Powered by TypeScript, Docker, and 💖", "main": "dist/src/mod.js", "typings": "dist/src/mod.d.ts", diff --git a/src/user/message.ts b/src/user/message.ts index 2d3d887fd8227ed663d725ab1fad6ce6196fa49c..214c11f9770353c90695b2503e1f85563dcd28bd 100644 --- a/src/user/message.ts +++ b/src/user/message.ts @@ -872,17 +872,22 @@ class Message extends EventEmitter implements Sayable { * }) * .start() */ - public async forward (to: Room | Contact): Promise { + public async forward (to: Room | Contact): Promise { log.verbose('Message', 'forward(%s)', to) // let roomId // let contactId try { - await this.wechaty.puppet.messageForward( + const msgId = await this.wechaty.puppet.messageForward( to.id, this.id, ) + if (msgId) { + const msg = this.wechaty.Message.load(msgId) + await msg.ready() + return msg + } } catch (e) { log.error('Message', 'forward(%s) exception: %s', to, e) throw e