#Error Evaluation failed R when I send mp4 video file.
15 messages · Page 1 of 1 (latest)
I updated link because I paste part of code sorry.
still you should use this
are you sure the number its a valid wsp number?
yes, I write correct number instead of TEST_NUMBER When I try to send png file, I can successfully send when I try to send mp4 file I couldnt send
When I try like this:
var mediaMP4 = await MessageMedia.fromFilePath("example.mp4");
client.sendMessage(chatId, mediaMP4);
I have same error again
No not mp4, png successfully send but mp4, avi file coulndt send
do you know that mp4 its just a container, right?
under the hood could been encoded in difererent codecs
maybe some are unsupported by whatsapp web
I found the solution:
when I send to mp4 file I add sendMediaAsDocument: True and it works for me // client.sendMessage(chatId, mediaMP4, { sendMediaAsDocument: true });