Skip to content

Commit

Permalink
forbid stories from unvetted users
Browse files Browse the repository at this point in the history
  • Loading branch information
TiraelSedai committed Jan 5, 2025
1 parent b1f9e1f commit bc6eebe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ClubDoorman/Worker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit bc6eebe

Please sign in to comment.