Update target framework to .NET 5 & telegram-bot-framework. Update bot codebase to use the new framework API.

This commit is contained in:
West14
2021-12-25 15:17:13 +02:00
parent 73ed1d88a9
commit de08c74a5d
9 changed files with 15 additions and 10 deletions
+3 -1
View File
@@ -4,6 +4,8 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BotFramework.Attributes;
using BotFramework.Enums;
using BotFramework.Setup;
using Kruzya.TelegramBot.Core.Extensions;
using Kruzya.TelegramBot.RichSiteSummary.Data;
using Microsoft.EntityFrameworkCore;
@@ -210,7 +212,7 @@ namespace Kruzya.TelegramBot.RichSiteSummary.Handler
#region Message handler
[CallbackQuery]
[Update(InChat.All, UpdateFlag.CallbackQuery)]
public async Task HandleAction()
{
if (!RawUpdate.CallbackQuery.Data.StartsWith("feed|"))
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<AssemblyName>TelegramBot.RichSiteSummary</AssemblyName>
<RootNamespace>Kruzya.TelegramBot.RichSiteSummary</RootNamespace>
</PropertyGroup>