diff --git a/TelegramBotBase/Sessions/DeviceSession.cs b/TelegramBotBase/Sessions/DeviceSession.cs
index 5050c80..1574de0 100644
--- a/TelegramBotBase/Sessions/DeviceSession.cs
+++ b/TelegramBotBase/Sessions/DeviceSession.cs
@@ -135,6 +135,7 @@ namespace TelegramBotBase.Sessions
this.ActiveForm.Device = this;
}
+
///
/// Edits the text message
///
@@ -723,6 +724,19 @@ namespace TelegramBotBase.Sessions
}
}
+ public virtual async Task UnbanUser(int userId)
+ {
+ try
+ {
+ await this.Client.TelegramClient.UnbanChatMemberAsync(this.DeviceId, userId);
+ }
+ catch
+ {
+
+ }
+ }
+
+
///
/// Eventhandler for sent messages