From 14b5fee6e584dd66bc2c663dd67a0abbd67855f2 Mon Sep 17 00:00:00 2001 From: Eliaxie Date: Sun, 10 Sep 2023 11:07:35 +0200 Subject: [PATCH] . --- .../Implementations/Example/ResponseOnMessageFunctionality.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Moderation/Moderation/src/Bot/Functionality/Implementations/Example/ResponseOnMessageFunctionality.cs b/Moderation/Moderation/src/Bot/Functionality/Implementations/Example/ResponseOnMessageFunctionality.cs index 008e49e..0212fa7 100644 --- a/Moderation/Moderation/src/Bot/Functionality/Implementations/Example/ResponseOnMessageFunctionality.cs +++ b/Moderation/Moderation/src/Bot/Functionality/Implementations/Example/ResponseOnMessageFunctionality.cs @@ -1,6 +1,7 @@ using Moderation.Bot.Functionality.Generic; using Moderation.Utility.Converter; using Moderation.Utility.MessageContentControl; +using PoliNetwork.Telegram.Bot.Bots; using Telegram.Bot; using Telegram.Bot.Types; @@ -14,7 +15,7 @@ private static string[] CreateForbiddenWordsArray() return JSONConverter.GetArrayFromFile(path) ?? Array.Empty(); } - public override async Task RunAsync(ITelegramBotClient bot, Update update, CancellationToken cancellationToken) + public override async Task RunAsync(AbstractTelegramBot bot, Update update, CancellationToken cancellationToken) { /* This way we only process the message text part */ if (update.Message is not { } message) return;