From c3c190133f44fc0985cc4de83b0dada4f5b432bf Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Fri, 30 Aug 2024 00:28:39 +0330 Subject: [PATCH] Fix QrCode --- core/scripts/telegrambot/tbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/scripts/telegrambot/tbot.py b/core/scripts/telegrambot/tbot.py index a6df020..99b2935 100644 --- a/core/scripts/telegrambot/tbot.py +++ b/core/scripts/telegrambot/tbot.py @@ -83,9 +83,10 @@ def process_add_user_step2(message, username): def process_add_user_step3(message, username, traffic_limit): try: expiration_days = int(message.text.strip()) + lower_username = username.lower() command = f"python3 {CLI_PATH} add-user -u {username} -t {traffic_limit} -e {expiration_days}" result = run_cli_command(command) - qr_command = f"python3 {CLI_PATH} show-user-uri -u {username} -ip 4" + qr_command = f"python3 {CLI_PATH} show-user-uri -u {lower_username} -ip 4" qr_result = run_cli_command(qr_command) if qr_result.strip() == "":