Update command
This commit is contained in:
@ -193,7 +193,7 @@ def process_delete_user(message):
|
|||||||
|
|
||||||
@bot.inline_handler(lambda query: is_admin(query.from_user.id))
|
@bot.inline_handler(lambda query: is_admin(query.from_user.id))
|
||||||
def handle_inline_query(query):
|
def handle_inline_query(query):
|
||||||
command = "python3 /etc/hysteria/core/cli.py list-users"
|
command = f"python3 {CLI_PATH} list-users"
|
||||||
result = run_cli_command(command)
|
result = run_cli_command(command)
|
||||||
try:
|
try:
|
||||||
users = json.loads(result)
|
users = json.loads(result)
|
||||||
|
|||||||
Reference in New Issue
Block a user