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
14.67k stars 3.49k forks source link

Don´t send media video #3154

Closed Darkemdk closed 3 weeks ago

Darkemdk commented 3 weeks ago

Is there an existing issue for this?

Describe the bug

I can't send videos on WhatsApp, I have already used the techniques in question #3002 without success

Expected behavior

const media = MessageMedia.fromFilePath(C:\\Users\\Administrator\\Desktop\\Bot\\video.mp4);

await sendMensage(client, numberprefix, media, { sendVideoasGif: true }); }

Steps to Reproduce the Bug or Issue

1.Send .mp4 video 2.Send video in WhatsApp

Relevant Code

Error: Evaluation failed: a at ExecutionContext._ExecutionContext_evaluate (C:\Users\Administrator\Desktop\Bot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:229:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (C:\Users\Administrator\Desktop\Bot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:107:16) at async Client.sendMessage (C:\Users\Administrator\Desktop\Bot\node_modules\whatsapp-web.js\src\Client.js:932:28) at async enviarMensagem (C:\Users\Administrator\Desktop\Bot\enviar_gif.js:60:7) at async processMessages (C:\Users\Administrator\Desktop\Bot\enviar_gif.js:102:3) at async Client. (C:\Users\Administrator\Desktop\Bot\enviar_gif.js:136:5)

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

I have already used the techniques in question #3002 without success

alechkos commented 3 weeks ago

Use #2816