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: