From 205c8d987d93151a17aa0793cb51bd99917aea97 Mon Sep 17 00:00:00 2001 From: Fringg Date: Mon, 23 Feb 2026 18:31:31 +0300 Subject: [PATCH] fix: use aiogram 3.x bot.download() instead of document.download() --- app/handlers/admin/bot_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/handlers/admin/bot_configuration.py b/app/handlers/admin/bot_configuration.py index c24c2024..6705a3d0 100644 --- a/app/handlers/admin/bot_configuration.py +++ b/app/handlers/admin/bot_configuration.py @@ -807,7 +807,7 @@ async def handle_import_message( content = '' if message.document: buffer = io.BytesIO() - await message.document.download(destination=buffer) + await message.bot.download(message.document, destination=buffer) buffer.seek(0) content = buffer.read().decode('utf-8', errors='ignore') else: