From 91a65d9b493a960f9fae2bdb59453cb6047058f1 Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 9 Aug 2022 12:31:11 +0200 Subject: [PATCH] Changed requirements-check procedure --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 0fcd6b4..f583dfa 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,6 @@ import sys from threading import Thread import time import traceback -import schedule from modules.logging import logWrite from modules.utils import configGet, jsonLoad, jsonSave @@ -57,10 +56,11 @@ if "--norun" in sys.argv: sys.exit() try: + import schedule # type: ignore from pyrogram import Client, filters, idle # type: ignore from pyrogram.types import ChatPermissions, ReplyKeyboardMarkup, InlineKeyboardMarkup, InlineKeyboardButton, BotCommand, BotCommandScopeChat # type: ignore except ModuleNotFoundError: - print(f"Module pyrogram is not installed. Run 'pip3 install -r requirements.txt' and restart the program.", flush=True) + print(f"Required modules are not installed. Run 'pip3 install -r requirements.txt' and restart the program.", flush=True) sys.exit() app = Client("duptsiaposter", bot_token=configGet("bot_token", "bot"), api_id=configGet("api_id", "bot"), api_hash=configGet("api_hash", "bot"))