A
A
Anonymous Anonymous2022-03-25 21:39:53
Telegram
Anonymous Anonymous, 2022-03-25 21:39:53

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

1 answer(s)
I
iBird Rose, 2022-03-25
@iiiBird

it was enough to go to the pricing page https://ngrok.com/pricing
6pWqAUPY.jpg?download=1&name=%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82%2025-03-2022%2022:29 :07.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question