Skip to content

Commit

Permalink
fix(wapi): fix sendFile function issue #1718
Browse files Browse the repository at this point in the history
  • Loading branch information
limshengli committed Jun 8, 2022
1 parent 5561906 commit ed89eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/wapi/functions/send-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit ed89eb7

Please sign in to comment.