Commit Graph

5 Commits

Author SHA1 Message Date
google-labs-jules[bot]
5f8ba127ae fix: Update audio download method for WhatsApp messages
This commit modifies the audio download process in `whatsapp-router/src/webhook.ts` to align with the updated nucleo-whatsapp API.

Previously, audio files were downloaded using a direct GET request to the file URL. This has been changed to a POST request to the `/downloadFileWithCredentials` endpoint provided by nucleo-whatsapp.

Key changes:
- Audio files are now downloaded by POSTing to `[OPEN_WA_URL]/downloadFileWithCredentials` with the audio file's URL in the request body.
- The `/downloadFileWithCredentials` endpoint returns a base64 encoded string directly, so the explicit base64 conversion step after downloading has been removed.

This change ensures compatibility with the correct API for fetching message media.
2025-06-06 17:40:56 +00:00
2880b7dbe9 cambiando dev variables 2025-06-06 11:28:21 -06:00
google-labs-jules[bot]
cfbe535747 Revert: Remove tests for WhatsApp audio transcription
This commit removes the Jest unit tests, configuration, and related dependencies that were added for the WhatsApp audio transcription feature.

This is done as per your request due to potential issues with the test execution environment.

The core functionality for audio transcription remains.
2025-06-06 17:19:47 +00:00
josedario87
cced5b37d9 Include bot messages from webhook 2025-06-05 18:29:57 -06:00
josedario87
e135868cb7 Update handlers to receive conversation objects 2025-06-05 10:01:28 -06:00