We can use swagger from this url: http://localhost:8080/api/swagger-ui/index.html.
First please read telegram bot documentation: https://core.telegram.org/bots.
Get Information from webhook: https://api.telegram.org/bot{BOT_TOKEN}/getWebhookinfo.
Set Webhook url: https://api.telegram.org/bot{BOT_TOKEN}/setWebhook?url={WEBHOOK_PATH}.
We need to add some values to the system environment variables, so that our Telegram Bot can work correctly.
Environment variables are:
1) TG_BOT_USERNAME
2) TG_BOT_TOKEN
3) TG_BOT_PATH
So, we need
Open the Start Search in Windows, type in “env”, and choose “Edit the system environment variables”:
Click the “Environment Variables…” button.
Set the environment variables which we described above with necessary values. The New button adds an additional variable.
Dismiss all of the dialogs by choosing “OK”. Your changes are saved!