sulla icon indicating copy to clipboard operation
sulla copied to clipboard

not sending image, how to?

Open xshion13 opened this issue 4 years ago • 3 comments

anyone can teach me how to send an image this is my code:

  } else if ((message.body).includes('MMEG')){
                            console.log('Enviar Imagen');
                            await client.sendImage(
                            chatId,
                            'C:/Users/USER/Documents/wspimages/images/example.jpg',
                            'example.jpg',
                            'example'
                            );

tried this but its not sending anything

xshion13 avatar May 20 '20 03:05 xshion13

await client.sendImage( from, 'path/to/img.jpg', 'image-name.jpg', 'Caption text' );

joedutra avatar May 21 '20 21:05 joedutra

from... message.from? because it isnt working!

jona950 avatar May 27 '20 02:05 jona950

the repository is deprecated use

Install npm i @s2click/venom https://github.com/s2click/venom

joedutra avatar Jun 06 '20 23:06 joedutra