Current section

Files

Jump to
telega include telega@flow_StepConfig.hrl
Raw

include/telega@flow_StepConfig.hrl

-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()})),
on_enter :: gleam@option:option(fun((telega@bot:context(any(), any()), telega@flow:flow_instance()) -> {ok,
{telega@bot:context(any(), any()), telega@flow:flow_instance()}} |
{error, any()})),
on_leave :: gleam@option:option(fun((telega@bot:context(any(), any()), telega@flow:flow_instance()) -> {ok,
{telega@bot:context(any(), any()), telega@flow:flow_instance()}} |
{error, any()}))
}).