From 7e3e05fcb2e404340bec60c92993d20f835e9609 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Wed, 17 Apr 2024 09:58:37 +0200 Subject: [PATCH] :bug: (whatsapp) Fix media download --- packages/bot-engine/whatsapp/downloadMedia.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/bot-engine/whatsapp/downloadMedia.ts b/packages/bot-engine/whatsapp/downloadMedia.ts index d89abceec..ecfde8e3e 100644 --- a/packages/bot-engine/whatsapp/downloadMedia.ts +++ b/packages/bot-engine/whatsapp/downloadMedia.ts @@ -24,6 +24,8 @@ export const downloadMedia = async ({ .get(url, { headers: { Authorization: `Bearer ${systemUserAccessToken}`, + 'User-Agent': + 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', }, }) .arrayBuffer()