Telegram Bot written in .NET
- Open
BotNet.sln
in Visual Studio - Right click
BotNet
project in Solution Explorer, selectManage User Secrets
- In the opened
secrets.json
, add your bot token to following properties:
{
"BotOptions:AccessToken": "yourtoken",
"GoogleMapOptions:ApiKey": "yourApiKey",
"HostingOptions:UseLongPolling": true,
"WeatherOptions:ApiKey": "yourApiKey"
}
- Run the project by pressing F5