From 33f317b97a8af04babccdee83ad3506bbfa0d959 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 9 Jul 2024 16:47:36 -0300 Subject: [PATCH] fix(whatsapp.gblib): Fix broadcasts. --- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index 1fbd8a53..2a6d6311 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -759,7 +759,7 @@ export class WhatsappDirectLine extends GBService { const driver = createBot(whatsappServiceNumber, whatsappServiceKey); if (msg['name']) { - const res = await driver.sendTemplate(to, msg['name'], 'pt_br', msg['components']); + const res = await driver.sendTemplate(to, msg['name'], 'pt_PT', msg['components']); } else { messages = msg.match(/(.|[\r\n]){1,4096}/g);