mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 12:39:24 +00:00
Merge branch 'main' into dev-pull
This commit is contained in:
@@ -43,10 +43,12 @@ const sendMedia = (client, number = null, fileName = null) => {
|
|||||||
if (fs.existsSync(file)) {
|
if (fs.existsSync(file)) {
|
||||||
const media = MessageMedia.fromFilePath(file);
|
const media = MessageMedia.fromFilePath(file);
|
||||||
client.sendMessage(number, media ,{ sendAudioAsVoice: true });
|
client.sendMessage(number, media ,{ sendAudioAsVoice: true });
|
||||||
|
|
||||||
}
|
}
|
||||||
}catch(e) {
|
}catch(e) {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Enviamos un mensaje simple (texto) a nuestro cliente
|
* Enviamos un mensaje simple (texto) a nuestro cliente
|
||||||
|
|||||||
Reference in New Issue
Block a user