Skip to content

Commit

Permalink
fix: file upload functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Feb 17, 2021
1 parent 3628734 commit e9cee11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/wapi/functions/send-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit e9cee11

@jonalan7
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.