From 650404083fc9a98e5efef731550c6bdc1a50038f Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Mon, 5 Aug 2024 12:53:55 +0330 Subject: [PATCH] Fix Telegram bot --- core/tbot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/tbot.py b/core/tbot.py index 86c207d..e084ae0 100644 --- a/core/tbot.py +++ b/core/tbot.py @@ -12,6 +12,7 @@ load_dotenv() API_TOKEN = os.getenv('API_TOKEN') ADMIN_USER_IDS = json.loads(os.getenv('ADMIN_USER_IDS')) CLI_PATH = '/etc/hysteria/core/cli.py' +bot = telebot.TeleBot(API_TOKEN) def run_cli_command(command): try: