Answer the question
In order to leave comments, you need to log in
How to automatically get public url from ngrok?
The essence of the question is that I started writing a telegram bot for one self-written database management software. The bot works using ngrok. So, how can you automatically get a public url from ngrok and slip it into the bot before it starts, so that it would work immediately on the tunnel, and not enter it manually, since the plans are to install ngrok as a windows service and in case of a failure or restart of the system had to edit appsettings. I searched and read everything I could find, but everywhere you need to first run ngrok and edit the configuration file. I will leave links to what I found and what I used for the bot.
https://github.com/TelegramBots/Telegram.Bot.Examp...
https://www.twilio.com/blog/integrate-ngrok-into-a...
https://github.com/kg73/ NgrokAspNetCore
And link to my project:
https://github.com/DestroySystem/TelegramBotApi
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question