How to download media files in WhatsApp API which send users?
I am currently writing a chatbot for WhatsApp. I use the 360dialog platform, which makes it possible to work with the WhatsApp Business API.
When the client sends a message, I see the following JSON object in the logs of my application:
{ "messages": [ { "from": "77773336633", "id": "ABGGd3c1cGY_Ago61ytHsZknvtLv", "image": { "id": "ffd23134-2dae-4fed-b5f8-0ce7867b6ddd", "mime_type": "image/jpeg", "sha256": "bd02100d961b5a1dbaae1dd645485ebbfeda77b44e82c015f1cf29b05654ccb9" }, "timestamp": "1605703542", "type": "image" } ], "contacts": [ { "profile": { "name": "Nurzhan Nogerbek" }, "wa_id": "77773336633" } ] }
I can't find any information in the documentation about how to download this file. In my case, I want to upload this image file that the client sends to my file storage. Please tell me which URL method from the WhatsApp API is responsible for this mechanism?
P.S. At the same time, I can send files to clients. This information is available on the official documentation.