venom
venom copied to clipboard
I can't send photos, videos, audios
Description
[I can't send photos, videos, audios, the library is only sending text, example of the code below]
Environment
- Venom version(s): [e.g. 2.0.27, 2.2.1]
- Browser: [e.g. Chrome 87, Chromium 85]
- OS: [e.g. OSX 10.13.4, Windows 10]
- Node version: [e.g. Node 8, Node 14]
Log Output
{
me: {
id: {
server: 'c.us',
user: '553191634965',
_serialized: '[email protected]'
},
displayName: null,
verifiedName: 'Paula Paz',
searchName: null,
pushname: 'Paula Paz',
notifyName: null,
isBusiness: true,
formattedUser: null,
tag: '2558680787',
eurl: 'https://pps.whatsapp.net/v/t61.24694-24/380194680_838435874730191_1934537116479553166_n.jpg?ccb=11-4&oh=01_AdRUU6zpygYeqpuyvxYK11XkwHoJQmfkABaUteEQZwpG-Q&oe=653E9935&_nc_sid=000000&_nc_cat=109',
previewEurl: 'https://pps.whatsapp.net/v/t61.24694-24/380194680_838435874730191_1934537116479553166_n.jpg?stp=dst-jpg_s96x96&ccb=11-4&oh=01_AdQT5abta-cNGuFiyVEr-wD-8uTABli8K3EF3did2XHzjQ&oe=653E9935&_nc_sid=000000&_nc_cat=109',
fullDirectPath: '/v/t61.24694-24/380194680_838435874730191_1934537116479553166_n.jpg?ccb=11-4&oh=01_AdRUU6zpygYeqpuyvxYK11XkwHoJQmfkABaUteEQZwpG-Q&oe=653E9935&_nc_sid=000000&_nc_cat=109',
previewDirectPath: '/v/t61.24694-24/380194680_838435874730191_1934537116479553166_n.jpg?stp=dst-jpg_s96x96&ccb=11-4&oh=01_AdQT5abta-cNGuFiyVEr-wD-8uTABli8K3EF3did2XHzjQ&oe=653E9935&_nc_sid=000000&_nc_cat=109',
filehash: 'GFZkT6S91VQ7s2LLtgtibxXj4FibC2uOJLPKjjeAXCk=',
stale: false,
eurlStale: false,
timestamp: 1697737583759,
hostRetryCount: 0,
dataSource: 'server',
description: null,
categories: [ [Object] ],
profileOptions: { commerceExperience: 'none', cartEnabled: true },
email: null,
website: [],
businessHours: null,
address: null,
fbPage: {},
igProfessional: {},
isProfileLinked: false,
isProfileLocked: true,
coverPhoto: null,
automatedType: 'unknown'
},
to: {
server: 'g.us',
user: '120363194240598042',
_serialized: '[email protected]'
},
erro: true,
text: 'Error to processFiles',
status: 404
}
Code
function start(client) {
client.onMessage((message) => {
if (message.body == 'Boa') {
client
.sendText(message.from, 'Welcome Venom 🕷')
.then((result) => {
console.log('Result: ', result); //return object success
})
.catch((erro) => {
console.error('Error when sending: ', erro); //return object error
});
}
});
const canal = '[email protected]'
client.sendVideoAsGif(
canal,
'./20231017_151813.mp4',
'video.gif',
'Gif image file'
);
client.sendImage(
canal,
'./ninjacrashlogo-1-1024x873.png',
'image-name',
'Caption text'
)
client.sendText(canal, 'texto de texto')
}
Additional context / Screenshot
I am having the same issue. Have you been able to figure this out?
Same error using sendImage
version: ^5.0.21
error: erro: true, text: 'Error to processFiles', status: 404
This worked on my local server, changing the node_modules https://github.com/orkestral/venom/issues/2482#issuecomment-1732781741, https://github.com/orkestral/venom/issues/2485#issuecomment-1736243665 but i hope they correct it because usually node_modules don't go to production
New Release: npm i [email protected]
We have support for Venom for just $15 per month, if you are interested, call our support via the link: https://web.whatsapp.com/send?phone=5561985290357