Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliaxie committed Sep 10, 2023
1 parent 92c0a5d commit 14b5fee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -14,7 +15,7 @@ private static string[] CreateForbiddenWordsArray()
return JSONConverter.GetArrayFromFile(path) ?? Array.Empty<string>();
}

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;
Expand Down

0 comments on commit 14b5fee

Please sign in to comment.