A template for creating Telegram bots using the Telegram.Bot library.
.NET 6.0 is our target.
-
Click the
Use this template
button to create a new repository from this template. -
Modify
BotToken
field inappsettings.json
. -
Build and run your project.
dotnet publish -c Release -r win-x64 --self-contained true
# or
dotnet publish -c Release -r linux-x64 --self-contained true
You can use any other runtime identifier (RID) supported by .NET Core.
It's recommended to use -p:PublishReadyToRun=true
or -p:PublishSingleFile=true
.
MIT License