github aldinokemal/go-whatsapp-web-multidevice v8.3.2

5 hours ago

What's New in v8.3.2

🛠️ Patch Release: ContactsArray Webhook, Display Name Fixes & Media History Improvements

This release adds support for multi-contact webhook payloads, fixes display name resolution issues, improves media representation in chat history, and updates core dependencies.


✨ New Features

Webhook: ContactsArrayMessage Support (#594)

  • New: When a user shares multiple contacts at once, the webhook now includes a contacts_array field with all shared contacts
  • Format: Each entry contains displayName and vcard fields — consistent with the existing single contact field
  • Display Text: BuildEventMessage now shows a summary like 👥 3 contacts for multi-contact messages
  • Backward Compatible: Existing contact field for single contacts is unchanged; webhook consumers that don't handle contacts_array are unaffected
  • Contributor: Thanks to @lowprofix for this contribution!

🐛 Bug Fixes

Display Name & User Info Resolution (#595, fixes #590)

  • Fix: Fallback logic now uses clean phone numbers when a push name is unavailable, preventing internal device IDs from appearing as chat names
  • API Enhancement: Added a name field to the /user/info response
  • Data Persistence: The User usecase now queries local chat storage to provide push name if the live WhatsApp query returns empty values
  • Sync Improvement: History sync now proactively creates chat entries when push names are received, ensuring availability for future lookups

Media Representation in Chat History (#597, fixes #596)

  • Documents: Now uses the actual filename (e.g., 📄 report.pdf) in history when no caption is provided, instead of the generic 📄 Document label
  • Documents: Trims filename used for document representation fallback to avoid whitespace issues
  • Images: Removed redundant 🖼️ prefix from user-provided captions to keep history clean
  • Inbound Support: Enhanced ExtractMessageTextFromEvent to extract filename from incoming WhatsApp messages when caption is empty

🔧 Technical Improvements

Dependency Updates

  • go.mau.fi/whatsmeow: Updated to latest version
  • All Go dependencies kept up-to-date

New Contributors

What's Changed

Full Changelog: v8.3.1...v8.3.2

Don't miss a new go-whatsapp-web-multidevice release

NewReleases is sending notifications on new releases.