mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Bug fix
This commit is contained in:
@@ -230,7 +230,8 @@ module.exports = {
|
||||
const macKey = mediaKeys.macKey
|
||||
|
||||
// download the message
|
||||
const buffer = await fetch(message.url).buffer()
|
||||
const fetched = await fetch(message.url)
|
||||
const buffer = await fetched.buffer()
|
||||
// first part is actual file
|
||||
let file = buffer.slice(0, buffer.length-10)
|
||||
// last 10 bytes is HMAC sign of file
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"test": "node test.js"
|
||||
},
|
||||
"author": "Adhiraj Singh",
|
||||
"license": "ISC",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"curve25519-js": "0.0.4",
|
||||
"futoin-hkdf": "^1.3.2",
|
||||
|
||||
Reference in New Issue
Block a user