throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
^
Error: Evaluation failed: a
I'm trying to send an audio file as a voice message, but it seems like I'm encountering some errors...
//audioPath and other variables are defined
const filePath = path.resolve(__dirname, `./cache/${audioPath}.mp3`);
const fileData = fs.readFileSync(filePath, { encoding: 'base64' });
const audio = new MessageMedia('audio/mp3', fileData);
await client.sendMessage(msg.from, audio, { sendAudioAsVoice: true });
I feel like I've the wrong format or something passed through, but not sure what it is.. If anyone's free then can you please assist with this?