new(whatsapp.gblib): New WhatsApp provider: Meta.
This commit is contained in:
		
							parent
							
								
									20e77ef3a2
								
							
						
					
					
						commit
						3672b46876
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -651,9 +651,7 @@ export class GBConversationalService {
 | 
			
		|||
  public async fillAndBroadcastTemplate(min: GBMinInstance, step: GBDialogStep, mobile: string, text) {
 | 
			
		||||
 | 
			
		||||
    let image = /(.*)\n/gmi.exec(text)[0].trim();
 | 
			
		||||
 | 
			
		||||
    const gbaiName = DialogKeywords.getGBAIPath(min.botId);
 | 
			
		||||
 | 
			
		||||
    const fileUrl = urlJoin(process.env.BOT_URL,'kb', gbaiName, `${min.botId}.gbkb`, 'images', image);
 | 
			
		||||
    
 | 
			
		||||
    let urlImage = image.startsWith('http')
 | 
			
		||||
| 
						 | 
				
			
			@ -686,7 +684,7 @@ export class GBConversationalService {
 | 
			
		|||
      ]
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    GBLogEx.info(min, `Sending answer file to mobile: ${mobile}.`);
 | 
			
		||||
    GBLogEx.info(min, `Sending answer file to mobile: ${mobile}. Header: ${urlImage}`);
 | 
			
		||||
    await this.sendToMobile(min, mobile, data, null);
 | 
			
		||||
  }
 | 
			
		||||
  // tslint:enable:no-unsafe-any
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue