class set_photo(StatesGroup):
photo=State()
@dp.message_handler(commands="test")
async def test(msg:types.Message, state: FSMContext):
await msg.answer("введите слово")
await set_photo.photo.set()#установка состояния
#стадия из первого деспетчера
@dp.message_handler(state=set_photo.photo)
async def something (msg:types.Message, state: FSMContext):
async with state.proxy() as data:
data["text"]=msg.text
await msg.answer(f"ваш текст {data["text"]} ")