How to test telegram bot webhook on local machine? [closed] How to test telegram bot webhook on local machine? [closed] php php

How to test telegram bot webhook on local machine? [closed]


You could use ngrok if you just needed a quick public URL to your webapp without a bunch of hassle.

So you'd just run something like ngrok.exe http 192.168.10.10:80 -host-header=test.app it'll return a custom domain

Forwarding http://449ee26d.ngrok.io -> 192.168.10.10:80

And you just point Telegram's webhook to http://449ee26d.ngrok.io/your-endpoint

ngrok