Skip to content

Commit

Permalink
fix(whatsapp.gblib): SEND FILE sending bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Aug 5, 2022
1 parent 9558433 commit 8194c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/whatsapp.gblib/services/WhatsappDirectLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ export class WhatsappDirectLine extends GBService {
let options;
switch (this.provider) {
case 'GeneralBots':
const attachment = MessageMedia.fromurl(url);
const attachment = MessageMedia.fromUrl(url);
await this.customClient.sendMessage(to, attachment, { caption: caption });
break;

Expand Down Expand Up @@ -682,7 +682,7 @@ export class WhatsappDirectLine extends GBService {
switch (this.provider) {
case 'GeneralBots':

const attachment = MessageMedia.fromurl(url);
const attachment = MessageMedia.fromUrl(url);
await this.customClient.sendMessage(to, attachment);

break;
Expand Down

0 comments on commit 8194c79

Please sign in to comment.