WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
4.07k stars 1.38k forks source link

[BUG] Error: invalid encoding #1095

Closed zeyzofc closed 1 month ago

zeyzofc commented 1 month ago

zeyz.sendMessage("120363311638937095@newsletter", { audio: { url: "https://mxmxk-up.hf.space/file/audio-zpv5q637y78.mp3" }, viewOnce: false, ptt: true, mimetype: "audio/mpeg", fileName: night.mp3, waveform: [0, 153, 0, 494, 976], contextInfo: { forwardingScore: 999, isForwarded: true, forwardedNewsletterMessageInfo: { newsletterName: "Song 🎵", newsletterJid: "120363311638937095@newsletter" }, externalAdReply: { showAdAttribution: true, mediaType: 2, mediaUrl: "https://mxmxk-up.hf.space/file/audio-zpv5q637y78.mp3", body: "night 🎵", sourceUrl: "xyz", thumbnail: "https://mxmxk-up.hf.space/file/image-9simpmogjo9.jpg", } } });

How to fix?