TheHamkerCat 5 år sedan
förälder
incheckning
de30f60791
3 ändrade filer med 3 tillägg och 3 borttagningar
  1. 1 1
      README.md
  2. 1 1
      wbb/modules/nudenet.py
  3. 1 1
      wbb/modules/sudoers.py

+ 1 - 1
README.md

@@ -7,7 +7,7 @@ Just Another Telegram Bot Written In Python Using Pyrogram.
 
 ## Requirements
 
-- Python 3.7 or higher.
+- Python==3.9.
 - Neofetch is needed for some modules.
 - A [Telegram API key](https://docs.pyrogram.org/intro/setup#api-keys).
 - A [Telegram bot token](https://t.me/botfather).

+ 1 - 1
wbb/modules/nudenet.py

@@ -15,7 +15,7 @@ async def nudenet_detector(_, message):
                 message.document.mime_type != "image/jpeg":
                     return
     mention = message.from_user.mention
-    file = await message.reply_to_message.download()
+    file = await message.download()
     image = detector.detect(file, mode='fast')
     if image:
         try:

+ 1 - 1
wbb/modules/sudoers.py

@@ -274,4 +274,4 @@ async def broadcast_message(_, message):
 @app.on_message(filters.command("update") & filters.user(SUDOERS))
 async def update_restart(_, message):
     await message.reply_text(f'```{subprocess.check_output(["git", "pull"]).decode("UTF-8")}```')
-    os.execvp("python3", ["python3", "-m", "wbb"])
+    os.execvp("python3.9", ["python3.9", "-m", "wbb"])