fix(whatsapp.gblib): Fix broadcasts.

This commit is contained in:
Rodrigo Rodriguez 2024-07-12 11:13:47 -03:00
parent 6f58f8f293
commit aba9c9a27d

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_PT', msg['components']);
const res = await driver.sendTemplate(to, msg['name'], 'pt_BR', msg['components']);
} else {
messages = msg.match(/(.|[\r\n]){1,4096}/g);