This example demonstrates simple Telegram Bot, which generate Aztec Diamond
You should provide your Telegram Bot token with one of the available providers.
Read futher on Configuration in ASP.NET Core.
We provide plaecehoder for bot configuration in appsettings*.json
. You have to replace {BOT_TOKEN} with actual Bot token:
"BotConfiguration": {
"BotToken": "{BOT_TOKEN}"
}
Watch Configuration in .NET 6 talk for deep dive into .NET Configuration.
Launch the bot and send a telegram request, where n
is the rank:
/generate_aztec_diamond {n}