Merge branch 'main' into dev-pull

This commit is contained in:
Leifer Mendez
2022-08-09 20:57:29 +02:00
committed by GitHub

View File

@@ -43,10 +43,12 @@ const sendMedia = (client, number = null, fileName = null) => {
if (fs.existsSync(file)) {
const media = MessageMedia.fromFilePath(file);
client.sendMessage(number, media ,{ sendAudioAsVoice: true });
}
}catch(e) {
throw e;
}
}
/**
* Enviamos un mensaje simple (texto) a nuestro cliente