refactor(ban): use ctors with def values to ban\unban

This commit is contained in:
Andriy
2025-03-23 12:03:26 +02:00
parent 71fa49ad52
commit 5ad7b7d453
2 changed files with 2 additions and 22 deletions
+1 -4
View File
@@ -41,10 +41,7 @@ public abstract class CommonHandler : BotEventHandler
await Bot.RestrictChatMember(
Chat.Id,
userId,
new ChatPermissions
{
CanSendMessages = false
},
new ChatPermissions(),
untilDate: banEnd
);
}