title: Testing Telegram login widget locally
body: <p>I am currently developing an angular 9 website. I wanted to integrate Telegram Login to my website. I have done all the necessary steps to include it to the website. I have configured the domain name setting of the bot to my own. When deployed and in production, the website works perfectly well.</p>
  
  <p>The problem arises when I try and debug it locally, the button raises "bot domain invalid" error. I am aware that this is because the website isn't hosted in the domain name the bot is configured to handle.</p>
  
  <p>Solutions that I've tried using are</p>
  
  <ul>
  <li>Use ngrok to proxy localhost to a public URL and set that as the bot's domain. This for some reason, which eludes me, won't work. </li>
  <li>Since I'm developing in a windows environment, configure hosts file in windows to point my main domain name to localhost. This also hasn't worked, mysteriously. </li>
  </ul>
  
  <p>Is there any other solutions that I can use to aid my use case?</p>
  
  <p>I understand that I might not have implemented the solutions I mentioned above correctly. I will also appreciate it if I could get some decent pointers in those areas.</p>