@zervonexx/baileys 5.0.3 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -850,6 +850,15 @@ await sock.sendMessage(jid, { sticker: buffer, audio: buffer })
850
850
  // Pass a pre-resolved audioMessage proto directly
851
851
  await sock.sendMessage(jid, { sticker: buffer, audioMessage: resolvedAudioMessageObject })
852
852
 
853
+ // Auto extract audio from video sticker (opt-in)
854
+ await sock.sendMessage(jid, { sticker: videoBuffer, extractAudio: true })
855
+ await sock.sendMessage(jid, { sticker: './sticker.mp4', extractAudio: true })
856
+ await sock.sendMessage(jid, { sticker: { url: 'https://example.com/sticker.mp4' }, extractAudio: true })
857
+
858
+ // Notes:
859
+ // ⚠️ extractAudio requires the sticker to be a video — passing an image will throw
860
+ // ⚠️ extractAudio: false is the same as not passing it — sticker sends without audio
861
+ // ⚠️ If no audio is provided at all, sticker sends without audio silently
853
862
  // ⚠️ Audio attachment is not supported for sticker packs — only individual stickers
854
863
  ```
855
864