mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: map all WA media types
This commit is contained in:
@@ -10,7 +10,7 @@ import { downloadContentFromMessage } from './messages-media'
|
||||
const inflatePromise = promisify(inflate)
|
||||
|
||||
export const downloadHistory = async(msg: proto.Message.IHistorySyncNotification) => {
|
||||
const stream = await downloadContentFromMessage(msg, 'history')
|
||||
const stream = await downloadContentFromMessage(msg, 'md-msg-hist')
|
||||
const bufferArray: Buffer[] = []
|
||||
for await (const chunk of stream) {
|
||||
bufferArray.push(chunk)
|
||||
|
||||
Reference in New Issue
Block a user