new(basic.gblib): SEND FILE pdf as temporary images.
This commit is contained in:
		
							parent
							
								
									16aae3f6e6
								
							
						
					
					
						commit
						c9d2499e31
					
				
					 1 changed files with 9 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -1252,14 +1252,17 @@ export class GBConversationalService {
 | 
			
		|||
      }
 | 
			
		||||
      analytics.createMessage(min.instance.instanceId, conversation, null, text);
 | 
			
		||||
    }
 | 
			
		||||
    console.log(GBUtil.toYAML(step));
 | 
			
		||||
    if (step && step.IsRevoked) {
 | 
			
		||||
 | 
			
		||||
      await min.whatsAppDirectLine.sendToDevice(user.userSystemId, 
 | 
			
		||||
          text);
 | 
			
		||||
 | 
			
		||||
    } else {
 | 
			
		||||
    
 | 
			
		||||
    try{
 | 
			
		||||
      // TODO: Remove MS BOT Framework and put GBNative.
 | 
			
		||||
      
 | 
			
		||||
      await step.context.sendActivity(text);
 | 
			
		||||
 | 
			
		||||
    } catch {
 | 
			
		||||
      await min.whatsAppDirectLine.sendToDevice(user.userSystemId, 
 | 
			
		||||
        text);
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  public async broadcast(min: GBMinInstance, message: string) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue