php - How to test telegram bot webhook on local machine? -
i developing telegram bot , want use webhooks instead of polling messages telegram server.
i'm developing , testing app on localhost not reachable web host, can't set webhook url.
now wondering how real messages telegram on local machine though webhooks?
you use ngrok if needed quick public url webapp without bunch of hassle.
so you'd run ngrok.exe http 192.168.10.10:80 -host-header=test.app
it'll return custom domain
forwarding http://449ee26d.ngrok.io -> 192.168.10.10:80
and point telegram's webhook http://449ee26d.ngrok.io/your-endpoint
Comments
Post a Comment