You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# before
data = await state.get_data()
name = data["name"]
# after
name = await state.get_value("name")
# i think
name = await state.get_data()["name"]
aiogram version
3.x
Problem
In a situation where you only need to take one value in FSMContext handler, you need to write 2 lines of code to take value
Possible solution
Add a get_value function for FSMContext that takes value by key
Alternatives
No response
Code example
Additional information
No response
The text was updated successfully, but these errors were encountered: