new(whatsapp.gblib): New WhatsApp provider: Meta.
This commit is contained in:
		
							parent
							
								
									8d04829ea5
								
							
						
					
					
						commit
						307d5fc405
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -445,9 +445,9 @@ export class GBMinService {
 | 
			
		|||
    GBServer.globals.server.all(`/${min.instance.botId}/whatsapp`, async (req, res) => {
 | 
			
		||||
 | 
			
		||||
      GBLogEx.info(min, `Meta callback OK. ${JSON.stringify(req.query)}`);
 | 
			
		||||
      
 | 
			
		||||
 | 
			
		||||
      if (req.query['hub.mode'] === 'subscribe') {
 | 
			
		||||
        const val = req.query['hub.challenge'];
 | 
			
		||||
        const val = req.query['hub.verify_token'];
 | 
			
		||||
 | 
			
		||||
        if (val === process.env.META_CHALLENGE) {
 | 
			
		||||
          res.status(200);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue