mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.02k stars 796 forks source link

InvalidMediaFileType #1078

Open DeyvissonSnuffs opened 2 years ago

DeyvissonSnuffs commented 2 years ago

I'm using a bot, with a command to send video from a system folder, everything was working but now error CODE case 'hentai': if (isGroupMsg && !isNsfw) return await kill.reply(from, mess.gpadulto(), id) await kill.reply(from, mess.wait(), id) let arquivo = await fs.readdir('./lib/media/videos/') var numero = Math.floor(math.random()*arquivos.length) if(numero==arquivos.length){ numero--; } await kill.sendFile(from, './lib/media/hentai/'+arquivos[numero], 'videos'+arquivos[numeroHentai], '', id) break

erro

Error: Evaluation failed: Error: InvalidMediaFileType 0|index | at Object.sendToChat (https://web.whatsapp.com/bootstrap_qr.6413cd4b0bfc5863366e.js:55:201826) 0|index | at __puppeteer_evaluation_script__:1:106169 0|index | at async Object.window.<computed>.<computed> [as sendImage] (__puppeteer_evaluation_script__:1:102881) 0|index | at ExecutionContext._evaluateInternal (C:\Users\dey_v\Kaotic\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) 0|index | at processTicksAndRejections (internal/process/task_queues.js:95:5) 0|index | at async ExecutionContext.evaluate (C:\Users\dey_v\Kaotic\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)

image

DeyvissonSnuffs commented 2 years ago

image