#Can't send button

5 messages · Page 1 of 1 (latest)

gilded violet
#

Since the update today i can't send a button, i'm getting

´´´js
throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'id')
at puppeteer_evaluation_script:64:51
at Array.map (<anonymous>)
at Object.window.WWebJS.prepareMessageButtons (puppeteer_evaluation_script:63:71)
at Object.window.WWebJS.sendMessage (puppeteer_evaluation_script:184:43)
at puppeteer_evaluation_script:10:45
at ExecutionContext._evaluateInternal (/root/Hys/AI/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ExecutionContext.evaluate (/root/Hys/AI/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
at async Client.sendMessage (/root/Hys/AI/node_modules/whatsapp-web.js/src/Client.js:686:28)
´´´
error

CODE:

      let button = new Buttons(
        'Hola, soy AIA, tu asistente virtual con el poder de la Inteligencia Artificial, puedes hacerme cualquier pregunta y yo te responderé lo mejor que pueda ademas puedes solicitarme que te diga una frase motivadora, etc. ',
        [
            { body: 'Iniciar', id: 'onboarding'},
        ],
        '¡Bienvenido!',
        'Presiona "Iniciar" '
    );
rich chasm
#

I am getting the same error

#

node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221
throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'id')
at puppeteer_evaluation_script:64:51
at Array.map (<anonymous>)
at Object.window.WWebJS.prepareMessageButtons (puppeteer_evaluation_script:63:71)
at Object.window.WWebJS.sendMessage (puppeteer_evaluation_script:184:43)
at puppeteer_evaluation_script:10:45
at ExecutionContext._evaluateInternal (D:\Ai\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (D:\Ai\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
at async Client.sendMessage (D:\Ai\node_modules\whatsapp-web.js\src\Client.js:686:28)

robust marsh
#

I am having the same issue. They made a major change in the code yesterday, and this broke the buttons