pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.05k stars 3.58k forks source link

Does not send video (mp4) as gif #3166

Open Darkemdk opened 2 months ago

Darkemdk commented 2 months ago

Is there an existing issue for this?

Describe the bug

Even using the {sendVideoAsGif:true} command, the system sends it as a video

Expected behavior

Send mp4 as Gif

Steps to Reproduce the Bug or Issue

1.Send .mp4 video as gif

Relevant Code

await sendMensage(client, numbePrefix, media, {sendVideoAsGif:true});

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Windows whatsapp-web.js version 1.23.1-alpha.3 WhatsApp Web version [run await client.getWWebVersion()]: Node.js Version 20.11

Additional context

No response

rizwan1239 commented 2 weeks ago

Were you able to figure it out? Apparently I am not able to send video as video either. I get this error: Error: Evaluation failed: a

luciano-santos-athenas commented 1 week ago

Same error. whatsapp-web.js version 1.25.0

node --version v18.20.2

err: Error: Evaluation failed: a at ExecutionContext._ExecutionContext_evaluate (/devathenas/appcliente/apicliente/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:229:15) at process.processTicksAndRejections (/devathenas/appcliente/apicliente/lib/internal/process/task_queues.js:95:5) at async ExecutionContext.evaluate (/devathenas/appcliente/apicliente/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16) at async Client.sendMessage (/devathenas/appcliente/apicliente/node_modules/whatsapp-web.js/src/Client.js:947:28) {stack: 'Error: Evaluation failed: a at ExecutionC…modules/whatsapp-web.js/src/Client.js:947:28)', message: 'Evaluation failed: a'}