iachat/app
Muhsin Keloth 990201f697 fix: Remove phone_number_id param from WhatsApp media retrieval for incoming messages (#13319)
Fixes https://github.com/chatwoot/chatwoot/issues/13317
Fixes an issue where WhatsApp attachment messages (images, audio, video,
documents) were failing to download. Messages were being created but
without attachments.

The `phone_number_id` parameter was being passed to the `GET
/<MEDIA_ID>` endpoint when downloading incoming media. According to
Meta's documentation:

> "Note that `phone_number_id` is optional. If included, the request
will only be processed if the business phone number ID included in the
query matches the ID of the business
  phone number **that the media was uploaded on**."

For incoming messages, media is uploaded by the customer, not by the
business phone number. Passing the business's `phone_number_id` causes
validation to fail with error: `Param phone_number_id is not a valid
whatsapp business phone number id ID`

This PR removes the `phone_number_id` parameter from the media URL
request for incoming messages.
2026-01-20 13:38:46 -03:00
..
actions Merge branch 'main' into chore/merge-upstream-4.5.0 2025-08-20 11:20:31 -03:00
assets feat: Hide installation identifier (#11722) 2025-06-17 15:45:40 -07:00
builders Merge branch 'main' into chore/merge-upstream-4.10 2026-01-16 14:01:53 -03:00
channels fix: Move contact events to account stream rather than individual user stream (#11082) 2025-03-13 17:46:48 -07:00
controllers Merge branch 'main' into chore/merge-upstream-4.10 2026-01-16 14:01:53 -03:00
dashboards feat: Auto confirm user email when super admin make changes (#12418) 2025-09-23 20:14:02 +05:30
dispatchers feat: toggle typing status on channel provider (#39) 2025-05-03 00:39:39 -03:00
drops feat: Add the support for custom attributes in message variables (#8511) 2023-12-08 14:13:35 -08:00
fields chore: improve plan-based feature handling with plan hierarchy (#11335) 2025-04-28 14:13:56 -07:00
finders feat: add SKIP_INCOMING_BCC_PROCESSING as internal config (#12484) 2025-09-22 17:52:56 +05:30
helpers Merge branch 'main' into chore/merge-upstream-4.10 2026-01-16 14:01:53 -03:00
javascript fix: csat survey page 2026-01-16 14:28:05 -03:00
jobs Merge branch 'main' into chore/merge-upstream-4.10 2026-01-16 14:01:53 -03:00
listeners Merge branch 'main' into chore/merge-upstream-4.10 2026-01-16 14:01:53 -03:00
mailboxes Chore/merge upstream 4.8.0 (#150) 2025-11-19 16:25:58 -03:00
mailers Merge branch main into chore/merge-upstream 2025-12-20 12:44:31 -03:00
models Merge branch 'main' into chore/merge-upstream-4.10 2026-01-16 14:01:53 -03:00
policies Merge branch main into chore/merge-upstream 2025-12-20 12:44:31 -03:00
presenters feat(CW-6187): include headers from incoming emails (#13139) 2026-01-07 12:45:54 +05:30
services fix: Remove phone_number_id param from WhatsApp media retrieval for incoming messages (#13319) 2026-01-20 13:38:46 -03:00
views Merge branch 'main' into chore/merge-upstream-4.10 2026-01-16 14:01:53 -03:00