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
|
const macKey = mediaKeys.macKey
|
||||||
|
|
||||||
// download the message
|
// 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
|
// first part is actual file
|
||||||
let file = buffer.slice(0, buffer.length-10)
|
let file = buffer.slice(0, buffer.length-10)
|
||||||
// last 10 bytes is HMAC sign of file
|
// last 10 bytes is HMAC sign of file
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"test": "node test.js"
|
"test": "node test.js"
|
||||||
},
|
},
|
||||||
"author": "Adhiraj Singh",
|
"author": "Adhiraj Singh",
|
||||||
"license": "ISC",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"curve25519-js": "0.0.4",
|
"curve25519-js": "0.0.4",
|
||||||
"futoin-hkdf": "^1.3.2",
|
"futoin-hkdf": "^1.3.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user