From bc6eebe4fdce4f2dfd2416ad1fe41bf8740db90c Mon Sep 17 00:00:00 2001 From: Evgenii Burmistrov Date: Sun, 5 Jan 2025 13:38:52 +0300 Subject: [PATCH] forbid stories from unvetted users --- ClubDoorman/Worker.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ClubDoorman/Worker.cs b/ClubDoorman/Worker.cs index f510b50..88184c7 100644 --- a/ClubDoorman/Worker.cs +++ b/ClubDoorman/Worker.cs @@ -242,6 +242,11 @@ await _bot.SendMessage( await DeleteAndReportMessage(message, user, "Сообщение с кнопками", stoppingToken); return; } + if (message.Story != null) + { + await DeleteAndReportMessage(message, user, "Сторис", stoppingToken); + return; + } if (string.IsNullOrWhiteSpace(text)) { _logger.LogDebug("Empty text/caption");