Skip to content

Commit

Permalink
馃悰 (whatsapp) Fix media download
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Apr 17, 2024
1 parent dcd3eaa commit 7e3e05f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/bot-engine/whatsapp/downloadMedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7e3e05f

Please sign in to comment.