From 8194c798281d6d8b80e4d1f04dcf47ba4a6538fc Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Fri, 5 Aug 2022 20:30:57 -0300 Subject: [PATCH] fix(whatsapp.gblib): SEND FILE sending bug. --- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;