Updating example projects to .NET 6 and latest framework.

This commit is contained in:
FlorianDahn
2022-03-19 04:22:07 +01:00
parent d7a5c149b1
commit e2ac7975a5
9 changed files with 55 additions and 22 deletions
+2 -2
View File
@@ -2,11 +2,11 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TelegramBotBase" Version="3.1.1" />
<PackageReference Include="TelegramBotBase" Version="5.0.0" />
</ItemGroup>
</Project>
+4 -1
View File
@@ -1,4 +1,5 @@
using System;
using TelegramBotBase.Builder;
namespace JoinHiderBot
{
@@ -9,7 +10,9 @@ namespace JoinHiderBot
String apiKey = "";
var bot = new TelegramBotBase.BotBase<forms.Start>(apiKey);
var bot = BotBaseBuilder.Create()
.QuickStart<forms.Start>(apiKey)
.Build();
bot.Start();