Changed some imports' paths

This commit is contained in:
Profitroll 2022-09-18 18:27:25 +02:00
parent c4177d1575
commit 0e14ca600f

View File

@ -58,11 +58,11 @@ if "--norun" in argv:
# Import =================================================================================================================================== # Import ===================================================================================================================================
try: try:
import schedule # type: ignore import schedule
from pyrogram import Client, filters, idle # type: ignore from pyrogram.sync import idle
from pyrogram.types import ChatPermissions, ReplyKeyboardMarkup, InlineKeyboardMarkup, InlineKeyboardButton, BotCommand, BotCommandScopeChat # type: ignore from pyrogram.client import Client
from pyrogram.raw.types import UpdateChannelMessageForwards, InputChannel, InputPeerChannel from pyrogram import filters
from pyrogram.raw.functions.stats import GetMessagePublicForwards from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, BotCommand, BotCommandScopeChat
except ModuleNotFoundError: except ModuleNotFoundError:
print(locale("deps_missing", "console", locale=configGet("locale_log")), flush=True) print(locale("deps_missing", "console", locale=configGet("locale_log")), flush=True)
exit() exit()
@ -181,7 +181,7 @@ def send_content():
return return
index["sent"].append(candidate_file) index["sent"].append(candidate_file)
index["last_id"] = sent.id index["last_id"] = sent.id # type: ignore
jsonSave(index, configGet("index", "locations")) jsonSave(index, configGet("index", "locations"))
@ -458,7 +458,7 @@ if __name__ == "__main__":
app.send_message(configGet("admin"), locale("startup", "message", locale=configGet("locale")).format(str(pid))) # type: ignore app.send_message(configGet("admin"), locale("startup", "message", locale=configGet("locale")).format(str(pid))) # type: ignore
if configGet("post", "mode"): if configGet("post", "mode"):
t = Thread(target=background_task) t = Thread(target=background_task) # type: ignore
t.start() t.start()
if configGet("submit", "mode"): if configGet("submit", "mode"):