Telegram bot deployment guide - ita-social-projects/WhatBackend GitHub Wiki
Setting up ngrok
- 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
Telegram bot start
- 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