-
Notifications
You must be signed in to change notification settings - Fork 16
Telegram bot deployment guide
AccorDDD edited this page Jan 28, 2022
·
2 revisions
- Switch to the branch with Telegram bot (currently, it's #566-TG-bot)
- Sign up and download ngrok
- Execute ngrok.exe
- Copy your personal authtoken from the second paragraph of this guide: Connect your account
- Run the command
ngrok authtoken your_personal_authtoken
in ngrok console window
- Run the command
ngrok http https://localhost:44348 -host-header="localhost:44348" -region=eu
in ngrok console window - Place .env file in Telegram bot folder, where specify these variables:
ConnectionStrings__DefaultConnection
ConnectionStrings__RabbitMQ
ConnectionStrings__AzureBlobsAccessKey
BotSettings__Url
BotSettings__Key
BotSettings__Name
- Copy domain name of forwarding node (domain_name.ngrok.io) and use this value for BotSettings__Url variable
- Run the TelegramBotApi