AntiFlood service

This commit is contained in:
2022-02-16 19:44:53 +03:00
parent a4d1dea47d
commit 520f1efe37
4 changed files with 89 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
using Telegram.Bot.Types;
namespace Kruzya.TelegramBot.Core.Service;
public interface IAntiFlood
{
public bool IsUserFlooding(Chat chat, User user);
public void RecordAction(Chat chat, User user);
}