brash-intern-84542
03/31/2024, 7:20 PMevent.payload
is empty when I send a file in WhatsApp, despite Twilio sending all necessary data to Botpress's webhook.
The payload sent by Twilio looks like this:
{
"MediaContentType0": "image/jpeg",
"NumMedia": 1,
"MessageType": "image",
"WaId": "0000000",
"SmsStatus": "received",
"Body": "",
"To": "whatsapp:+000000000",
"NumSegments": 1,
"ReferralNumMedia": 0,
"From": "whatsapp:+0000000",
"MediaUrl0": "https://api.twilio.com/2010-04-01/Accounts/...",
"ApiVersion": "2010-04-01"
}
So my question is, how can I capture, for example, the MediaUrl0
in my code?famous-jewelry-85388
04/01/2024, 4:54 PMbrash-intern-84542
04/01/2024, 5:33 PMfresh-fireman-491
04/02/2024, 4:33 AMbrash-intern-84542
04/02/2024, 6:00 AMbrash-intern-84542
04/02/2024, 6:11 AMevent.payload = { "text": "" }
and event.preview
is empty
https://cdn.discordapp.com/attachments/1224075955102941236/1224602083408351322/Screenshot_1.png?ex=661e1690&is=660ba190&hm=18dee50f183059847c6930973a4cf978c16089faa9c7e9d5b54133c0b3e96c86&