From ed89eb797b78c884898a49d23d33691ee3cb6eb2 Mon Sep 17 00:00:00 2001 From: limshengli Date: Wed, 8 Jun 2022 12:32:57 +0800 Subject: [PATCH] fix(wapi): fix sendFile function issue #1718 --- src/lib/wapi/functions/send-file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wapi/functions/send-file.js b/src/lib/wapi/functions/send-file.js index 3286c3576..7a20f1911 100644 --- a/src/lib/wapi/functions/send-file.js +++ b/src/lib/wapi/functions/send-file.js @@ -73,7 +73,7 @@ export async function sendFile(imgBase64, chatid, filename, caption, type) { if (!chat.erro) { var mediaBlob = base64ToFile(imgBase64, filename), mediaCollection = await processFiles(chat, mediaBlob), - media = mediaCollection.models[0]; + media = mediaCollection._models[0]; var result = (await media.sendToChat(chat, { caption: caption })) || ''; var m = { type: type, filename: filename, text: caption, mimeType: mime },