fix(whatsapp.gblib): Fix broadcasts.

This commit is contained in:
Rodrigo Rodriguez 2024-07-09 16:47:36 -03:00
parent 32c5c004f3
commit 33f317b97a

View file

@ -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);