spectrum-ts v12.0.0
Breaking Changes
Spectrum({ platforms: [...] })is no longer accepted; useSpectrum({ providers: [...] })instead. This standardizes the API and docs around “providers” everywhere. (9b8e927)
New Features
- WhatsApp Business can now send approved template messages with
whatsappTemplate(...), including language codes and body parameters. This is useful for reaching users outside WhatsApp’s 24-hour customer-service window. ✨
Bug Fixes
- WhatsApp Business quoted replies now come through as
replycontent with a target stub, so reply context is preserved on inbound messages. - WhatsApp Business push-to-talk recordings now map to
voicecontent instead of generic audio attachments. - WhatsApp Business group sends now handle captioned media correctly and send other grouped content as sequential parts instead of dropping pieces.
- If a WhatsApp Business grouped send fails partway through,
WhatsAppPartialSendErrornow reports which parts were already delivered so callers can avoid accidental duplicates.
Improvement
- WhatsApp Business now sends
richlinkand app URLs with native WhatsApp link previews when possible.
Version: 12.0.0