diff --git a/bot/api.py b/bot/api.py index 6dc1562..024cae2 100644 --- a/bot/api.py +++ b/bot/api.py @@ -47,6 +47,7 @@ async def download_file(file_id): async with aiofiles.tempfile.NamedTemporaryFile(delete=True) as temp_file: await temp_file.write(await response.read()) await temp_file.flush() + logger.error(f"download file: {temp_file.name }") yield temp_file.name # Yield the path of the temporary file else: logger.error(f"Failed to download file: {response.status}") \ No newline at end of file