From e9cee118fac64f25d133e3f62ca0e9ee2451c1b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3nalan=20de=20Lima?= Date: Tue, 16 Feb 2021 22:36:03 -0300 Subject: [PATCH] fix: file upload functions --- src/lib/wapi/functions/send-file.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/wapi/functions/send-file.js b/src/lib/wapi/functions/send-file.js index 8c2aa6b63..42f74ed80 100644 --- a/src/lib/wapi/functions/send-file.js +++ b/src/lib/wapi/functions/send-file.js @@ -100,6 +100,7 @@ export async function sendFile( let mediaCollection = await WAPI.processFiles(chat, mediaBlob), media = mediaCollection.models[0]; To = await WAPI.getchatId(chat.id); + result = (await media.sendToChat(chat, { caption: caption })) || ''; } if (result === 'success' || result === 'OK') { var obj = WAPI.scope(To, false, result, null);