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": "your token", "GoogleMapOptions:ApiKey": "your API key", "HostingOptions:UseLongPolling": true, "WeatherOptions:ApiKey": "your API key" }
-
Run the project by pressing F5