mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[code-watcher] skip messages with lineCount < 2
This commit is contained in:
@@ -34,6 +34,11 @@ public class Handler : BotEventHandler
|
||||
.SplitToLines()
|
||||
.ToList();
|
||||
|
||||
if (entityLines.Count < 2)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (entityLines.Count >= 20 || entityLines.Any(line => line.Length > 160))
|
||||
{
|
||||
await DeleteAndNotifyAsync(message);
|
||||
|
||||
Reference in New Issue
Block a user