2
0

🐛 (whatsapp) Fix media download

This commit is contained in:
Baptiste Arnaud
2024-04-17 09:58:37 +02:00
parent dcd3eaa6fd
commit 7e3e05fcb2

View File

@@ -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()