This commit is contained in:
Adhiraj
2020-05-31 22:59:06 +05:30
parent 117828ebd8
commit f24f83331c
3 changed files with 3 additions and 2 deletions

View File

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