|
@@ -1119,11 +1119,11 @@ async def wand_handler(bot, event, command):
|
|
|
is_document = True
|
|
is_document = True
|
|
|
|
|
|
|
|
if media is None:
|
|
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
|
|
program = command.args_string
|
|
|
|
|
|
|
|
if program:
|
|
if program:
|