From ab893393e3b18018f4935ae169e01d2bc8e266f8 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Date: Mon, 16 Jan 2023 00:46:38 -0300 Subject: [PATCH] Woops missing awaits --- skynet/frontend/telegram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skynet/frontend/telegram.py b/skynet/frontend/telegram.py index ff30cc8..b0121b6 100644 --- a/skynet/frontend/telegram.py +++ b/skynet/frontend/telegram.py @@ -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}')