txlyre 6 天之前
父節點
當前提交
c06641ed6e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      commands.py

+ 4 - 4
commands.py

@@ -1119,11 +1119,11 @@ async def wand_handler(bot, event, command):
             is_document = True
 
     if media is None:
-        await event.reply("Требуется приложить фото или документ для обработки.")
-
-        return
+        image = b"\x89WSP\r\n\x1a\n" + pack("!BHHBBBB", 0x63, 128, 128, 0, 0, 0, 0)
+        is_document = True
+    else:
+        image = await bot.download_media(media, file=bytes)
 
-    image = await bot.download_media(media, file=bytes)
     program = command.args_string
 
     if program: