Woops missing awaits

pull/4/head
Guillermo Rodriguez 2023-01-16 00:46:38 -03:00
parent d1fc9ab952
commit ab893393e3
No known key found for this signature in database
GPG Key ID: EC3AB66D5D83B392
1 changed files with 2 additions and 2 deletions

View File

@ -141,8 +141,8 @@ async def run_skynet_telegram(
return return
file_id = message.photo[-1].file_id file_id = message.photo[-1].file_id
file_path = bot.get_file(file_id).file_path file_path = (await bot.get_file(file_id)).file_path
file_raw = bot.download_file(file_path) file_raw = await bot.download_file(file_path)
img = zlib.compress(file_raw) img = zlib.compress(file_raw)
logging.info(f'mid: {message.id}') logging.info(f'mid: {message.id}')