Closed RickGroenewegen closed 2 years ago
Confirmed here, besides other functions in the Wap object returning the same error.
up
fixed in version 4.0.2
Is not fixed for me in 4.02. Still the same issue as described above.
I've removed node_modules and reinstalled everything and cleared the token folder to start with a clean session but that doesn't seem to help
I've created a new project with a simple script to reproduce the error:
var venom = require('venom-bot');
var groupID = '000000000000@c.us';
venom.create('venom_test').then((client) => start(client)).catch((err) => {
console.log(err);
});
var start = function(client) {
client.sendLinkPreview(groupID,'https://www.google.com','This is a test').then((result) => {
console.log(result);
}).catch((err) => {
console.log(err);
});
}
Hello,
if you are using MD beta then you can't send link previews, it is stated at whatsapp beta disclaimer
Trying sending links and stays loading never send someone can help? I've injected wapi.js now when trying sending link writing in the chat
Description
Everything appears to be working again after the 4.0.0 update. However I can no longer send a preview link with 'sendPreviewLink'. It throws an error: Unexpected null or undefined: BUNDLE
Environment
Steps to Reproduce
Call the following code:
client.sendLinkPreview('000000000000@c.us','https://www.google.com','test')
Log Output
Sending a normal text with client.sendText works fine. Sending a link seems to crash the app