That one single Telegram bot to replace all the others
- Group management
- Group games
- Group vs group chatting sessions
- Personal and group statistics
- Radzinsy.Host — web app to host Telegram webhooks
- Radzinsy.Application — application layer with everything needed to handle a Telegram update
- Radzinsy.Domain — domain models and services that do not depent on anything including Telegram APIs
- Radzinsy.Persistence — persistence layer containing database contexts and migrations
- Install ngrok (or use localtunnel instead)
- If using ngrok, consider signing in via auth token to get unlimited lifetime for your tunnel
- Run a forwarding HTTP tunnel using
ngrok http 8443
- Copy the public ngrok URL you've got
- Initialize user secrets for Radzinsky.Host
- Paste the copied ngrok public URL into the
Telegram:WebhookHost
field of the user secrets configuration - Fill the rest of user secrets (see appsettings.json)
- Run
dotnet run -p src/Radzinsky.Host/Radzinsky.Host.csproj -c Release --environment Production
- Give this repo a star
If using PM2
pm2 start ngrok -- http 8443
to start a tunnelcurl http://localhost:4040/api/tunnels
to get the ngrok public URL- Running webhook host process:
pm2 start -n radzinsky "dotnet run -p src/Radzinsky.Host/Radzinsky.Host.csproj -c Release --environment Production"
- Radzinsky — the bot
- Radzinsky Community — community
- gгёzы — developer