Skip to content

Commit

Permalink
fix(whatsapp.gblib): Fix broadcasts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Rodriguez committed Jul 12, 2024
1 parent 33f317b commit 1bb297f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/whatsapp.gblib/services/WhatsappDirectLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1bb297f

Please sign in to comment.