diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index 4c4c99b2..c593317e 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -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; @@ -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;