From e321455fb56c7f0329486f7c23e22b4b9ffb2dd9 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Fri, 30 Aug 2024 00:29:44 +0330 Subject: [PATCH] Fix delete user --- core/scripts/telegrambot/tbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts/telegrambot/tbot.py b/core/scripts/telegrambot/tbot.py index 99b2935..bd65d1d 100644 --- a/core/scripts/telegrambot/tbot.py +++ b/core/scripts/telegrambot/tbot.py @@ -293,7 +293,7 @@ def delete_user(message): bot.register_next_step_handler(msg, process_delete_user) def process_delete_user(message): - username = message.text.strip() + username = message.text.strip().lower() command = f"python3 {CLI_PATH} remove-user -u {username}" result = run_cli_command(command) bot.reply_to(message, result)