fix: unban

This commit is contained in:
Andriy
2025-03-23 11:32:03 +02:00
parent 2b41746f64
commit 1da8dce0f7
+13 -1
View File
@@ -59,12 +59,24 @@ public class Ban : CommonHandler
{ {
return; return;
} }
await Bot.RestrictChatMember(Chat.Id, RepliedUser!.Id, await Bot.RestrictChatMember(Chat.Id, RepliedUser!.Id,
new ChatPermissions new ChatPermissions
{ {
CanSendMessages = true, CanSendMessages = true,
CanAddWebPagePreviews = true,
CanChangeInfo = true,
CanInviteUsers = true,
CanManageTopics = true,
CanPinMessages = true,
CanSendAudios = true,
CanSendDocuments = true,
CanSendOtherMessages = true, CanSendOtherMessages = true,
CanSendPhotos = true,
CanSendPolls = true,
CanSendVideos = true,
CanSendVideoNotes = true,
CanSendVoiceNotes = true,
}); });
await Reply($"{From.ToHtml()} <code>разблокировал</code> {RepliedUser!.ToHtml()}"); await Reply($"{From.ToHtml()} <code>разблокировал</code> {RepliedUser!.ToHtml()}");