Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not send video (mp4) as gif #3166

Open
1 task done
Darkemdk opened this issue Jul 1, 2024 · 3 comments
Open
1 task done

Does not send video (mp4) as gif #3166

Darkemdk opened this issue Jul 1, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Darkemdk
Copy link

Darkemdk commented Jul 1, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

@Darkemdk Darkemdk added the bug Something isn't working label Jul 1, 2024
@rizwan1239
Copy link

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
Copy link

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'}

@rogerwh
Copy link

rogerwh commented Oct 30, 2024

Same here!

I tried to send a video like this:

const media = new MessageMedia(file.mimetype, fileData.toString("base64"), fileName);

# recipientid could be a number or groupId
await client.sendMessage(recipientId, media, { caption });

This returns "a"

Can someone help us?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants