diff --git a/src/Client.Helpers.cs b/src/Client.Helpers.cs index c0d0b2a..9fc14e0 100644 --- a/src/Client.Helpers.cs +++ b/src/Client.Helpers.cs @@ -574,16 +574,16 @@ namespace WTelegram _ => throw new ArgumentException("This method works on Chat & Channel only"), }; - public Task DeleteChatUser(InputPeer peer, InputUser user, bool revoke_history = true) => peer switch + public Task DeleteChatUser(InputPeer peer, InputUser user) => peer switch { - InputPeerChat chat => this.Messages_DeleteChatUser(chat.chat_id, user, revoke_history), + InputPeerChat chat => this.Messages_DeleteChatUser(chat.chat_id, user, true), InputPeerChannel channel => this.Channels_EditBanned(channel, user, new ChatBannedRights { flags = ChatBannedRights.Flags.view_messages }), _ => throw new ArgumentException("This method works on Chat & Channel only"), }; - public Task LeaveChat(InputPeer peer, bool revoke_history = true) => peer switch + public Task LeaveChat(InputPeer peer) => peer switch { - InputPeerChat chat => this.Messages_DeleteChatUser(chat.chat_id, InputUser.Self, revoke_history), + InputPeerChat chat => this.Messages_DeleteChatUser(chat.chat_id, InputUser.Self, true), InputPeerChannel channel => this.Channels_LeaveChannel(channel), _ => throw new ArgumentException("This method works on Chat & Channel only"), };