-record(step_config, { handler :: fun((telega@bot:context(any(), any()), telega@flow:flow_instance()) -> {ok, {telega@bot:context(any(), any()), telega@flow:flow_action(any()), telega@flow:flow_instance()}} | {error, any()}), middlewares :: list(fun((telega@bot:context(any(), any()), telega@flow:flow_instance(), fun(() -> {ok, {telega@bot:context(any(), any()), telega@flow:flow_action(any()), telega@flow:flow_instance()}} | {error, any()})) -> {ok, {telega@bot:context(any(), any()), telega@flow:flow_action(any()), telega@flow:flow_instance()}} | {error, any()})) }).