mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
AntiFlood service
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user