fix: use aiogram 3.x bot.download() instead of document.download()

This commit is contained in:
Fringg
2026-02-23 18:31:31 +03:00
parent ebe508302b
commit 205c8d987d
+1 -1
View File
@@ -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: