mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
refactor(ban): use ctors with def values to ban\unban
This commit is contained in:
@@ -41,10 +41,7 @@ public abstract class CommonHandler : BotEventHandler
|
||||
await Bot.RestrictChatMember(
|
||||
Chat.Id,
|
||||
userId,
|
||||
new ChatPermissions
|
||||
{
|
||||
CanSendMessages = false
|
||||
},
|
||||
new ChatPermissions(),
|
||||
untilDate: banEnd
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user