txlyre 6 ngày trước cách đây
mục cha
commit
c06641ed6e
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  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: