UnhandledPromiseRejectionWarning: Error: Evaluation failed: Error: MsgKey error: don't have a matching constructor
at new e (https://web.whatsapp.com/app2.85d299d29db566c4295d.js:2:834372)
at Object.window.WWebJS.sendMessage (puppeteer_evaluation_script:62:26)
at puppeteer_evaluation_script:18:45
at ExecutionContext._evaluateInternal (D:__WhatsappBOT\DemoAsync\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:220:19)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async ExecutionContext.evaluate (D:__WhatsappBOT\DemoAsync\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:108:20)
at async Client.sendMessage (D:__WhatsappBOT\DemoAsync\node_modules\whatsapp-web.js\src\Client.js:468:28)
(node:17804) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
UnhandledPromiseRejectionWarning: Error: Evaluation failed: Error: MsgKey error: don't have a matching constructor at new e (https://web.whatsapp.com/app2.85d299d29db566c4295d.js:2:834372) at Object.window.WWebJS.sendMessage (puppeteer_evaluation_script:62:26) at puppeteer_evaluation_script:18:45 at ExecutionContext._evaluateInternal (D:__WhatsappBOT\DemoAsync\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:220:19) at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async ExecutionContext.evaluate (D:__WhatsappBOT\DemoAsync\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:108:20)
at async Client.sendMessage (D:__WhatsappBOT\DemoAsync\node_modules\whatsapp-web.js\src\Client.js:468:28)
(node:17804) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)