In WhatsApp BOT, how to get the customer number that initiating the request?
              
              
              1 Like
            
            
          Hey @senthil.vasan
Could you elaborate a little bit on what you’re trying to achieve and what initiating the request means in your use-case?
Dear Senthil,
There is a variable (sender with global scope).
You will be able to access the customer’s number from it.
Got it using below code
return new Promise(resolve => {
      // Your logic goes here
      let phone = data.sender
      //let finalphone= phone.slice(2,12)
      resolve(phone);
  });
              
              
              2 Likes