Files
whatsapp/modules
Lizandro GuarnizoandClaude Sonnet 4.6 8a7e7a6658 Fix chat media upload: extract id from uploadMedia result, remap audio/webm
uploadMedia() returns the full API response array, not just the id string.
chat_upload_media.php was passing the whole array as $mediaId, producing
{"image": {"id": {"id": "...", "messaging_product": "..."}}} which
violated WhatsApp JSON schema for the media id field.

Also remap audio/webm (browser MediaRecorder default) to audio/ogg at
upload time since WhatsApp's media API rejects webm but accepts ogg/opus.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-03 14:28:33 -05:00
..
up
2026-04-16 22:23:33 -05:00
up
2026-04-16 23:14:08 -05:00
up
2026-04-16 23:14:08 -05:00
up
2026-04-16 22:23:33 -05:00
up
2026-04-16 22:23:33 -05:00
up
2026-04-16 23:07:53 -05:00
up
2026-04-16 22:23:33 -05:00
up
2026-04-16 22:23:33 -05:00
up
2026-04-21 16:09:17 -05:00
2026-04-18 23:48:58 -05:00
up
2026-04-16 22:23:33 -05:00
up
2026-04-16 22:23:33 -05:00