Skip to content

Commit

Permalink
Merge pull request #46 from gitbot-x/main
Browse files Browse the repository at this point in the history
update to 1.0.16
  • Loading branch information
gitbot-x authored Apr 21, 2024
2 parents 6f10806 + 8868016 commit 779a8c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ class WhatsappCloud {
};
}

async sendDocument({ recipientPhone, caption, file_path, url, mime_type }) {
async sendDocument({ recipientPhone, caption, file_path, url, mime_type, file_name }) {
this._mustHaverecipientPhone(recipientPhone);
if (file_path && url) {
throw new Error(
Expand All @@ -700,6 +700,7 @@ class WhatsappCloud {
type: 'document',
document: {
caption: caption || '',
filename: file_name || "Unnamed file",
},
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "whatsappcloudapi_wrapper",
"version": "1.0.15",
"version": "1.0.16",
"description": "Tired of doing things wrong? This package provides you with an easy way to get started and start building on the Whatsapp Cloud API. This is an unofficial wrapper for the Whatsapp Cloud API.",
"main": "index.js",
"author": "Daggie Blanqx",
Expand Down

0 comments on commit 779a8c2

Please sign in to comment.