fix(whatsapp.gblib): Fix broadcasts.
This commit is contained in:
		
							parent
							
								
									32c5c004f3
								
							
						
					
					
						commit
						33f317b97a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue