Woops missing awaits

pull/25/head
Guillermo Rodriguez 2023-01-16 00:46:38 -03:00
parent 36ea39109b
commit 590ce7cdd9
1 changed files with 2 additions and 2 deletions

View File

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