How to test a bot for a telegram on a local machine? I have a bot that receives messages through the webhook. The bot is written in python and saved on google app engine servers. I use the flask framework. Now I am correcting the bot code locally, then uploading it to the server and thus testing it. Maybe there is an opportunity to test the bot locally, before uploading to the server? If you run the bot script for execution on a local machine, and then in the browser line, specify the url with a hook like http://127.0.0.1:8080/HOOK , the messages do not come. Tell me how to test on a local machine?
- Try to get your local Internet address using this utility: ngrok.com (ngrok creates a secure public URL ( yourapp.ngrok.io ) - a spectre_it
- try ngrok, wrote about it here. stackoverflow.com/a/552141/183842 - Anatol
|