A simple Telegram bot that responds to /yesno
Also works in groups
- .NET 5.x
- Any OS that runs .NET 5.x (Linux, Windows, Mac OS, whatever)
- Create a new bot in Botfather
- /setcommands
yesno - Get a random yes or no - /setprivacy
DISABLED(or it will only work in PM, or in supergroups where it is admin) - Put the API code you got in Program.cs
- Type
dotnet runto start the bot