@dp.message_handler(commands=['file'])
async def process_file_command(message: types.Message):
user_id = message.from_user.id
await bot.send_chat_action(user_id, ChatActions.UPLOAD_DOCUMENT)
await asyncio.sleep(1)
await bot.send_document(user_id, TEXT_FILE,
caption='Файл отправлен')