Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 789 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 789 Bytes

Aztec Diomod Telegram Bot

About

This example demonstrates simple Telegram Bot, which generate Aztec Diamond

Configuration

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.

Run

Launch the bot and send a telegram request, where n is the rank:

/generate_aztec_diamond {n}