mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Update target framework to .NET 5 & telegram-bot-framework. Update bot codebase to use the new framework API.
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using BotFramework;
|
||||
using BotFramework.Attributes;
|
||||
using BotFramework.Enums;
|
||||
using BotFramework.Setup;
|
||||
using Kruzya.TelegramBot.Core.Cache;
|
||||
using Kruzya.TelegramBot.Core.Data;
|
||||
@@ -24,7 +25,7 @@ namespace Kruzya.TelegramBot.UrlLimitations
|
||||
dbCtx = coreContext;
|
||||
}
|
||||
|
||||
[TextMessage(InChat.Public)]
|
||||
[Message(InChat.Public, MessageFlag.HasText)]
|
||||
public async Task OnMessageReceived()
|
||||
{
|
||||
var option = await dbCtx.UserValues.FindOption(Chat.Id, From.Id, "urlLimitations.messagesAfterJoin");
|
||||
|
||||
Reference in New Issue
Block a user