whatsapp-api icon indicating copy to clipboard operation
whatsapp-api copied to clipboard

Forward message request error

Open andrew-belyi opened this issue 2 years ago • 0 comments

Route /message/forward/{sessionId} will throw an error. This issue related to whatsapp-web.js itself. The error is: "Evaluation failed: TypeError: chat.forwardMessages is not a function at __puppeteer_evaluation_script__:5:31" The issue on your side beggins here: https://github.com/chrishubert/whatsapp-api/blob/8d3ea5cfa4fa852e90bcea59e30dc5ec03be38d5/src/controllers/messageController.js#L114 It relates to Message entity from whatsapp-web.js here: https://github.com/pedroslopez/whatsapp-web.js/blob/7737a0d701c2bde180c4cdcb2926895b0b649b4f/src/structures/Message.js#L419C26-L419C31 The problem is that Chat entity doesn't have such method forwardMessages.

The issue in whatsapp-web.js is already opened: https://github.com/pedroslopez/whatsapp-web.js/issues/2456

Dunno what can you do in this case, just be aware.

andrew-belyi avatar Nov 27 '23 15:11 andrew-belyi