One-step FSM
Error: Town() takes no arguments
@weather_router.message(Command("weather"))
class Town(StatesGroup):
town = State()
async def town(message: Message, state: FSMContext):
await message.answer(f"{message.from_user.first_name}, введи город")
await state.set_state(Town.town)
async def townn(message: Message):
await message.answer(f"Ваш городn{message.text}")
I want bot to handle users “town” and send it him back by text message using FSM
New contributor
Евгений is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.