Current section

Files

Jump to
telega include telega@dialog@engine_CompiledDialog.hrl
Raw

include/telega@dialog@engine_CompiledDialog.hrl

-record(compiled_dialog, {
id :: binary(),
windows :: gleam@dict:dict(binary(), telega@dialog@types:window(binary(), any(), any(), any())),
initial :: binary(),
initial_encoded :: fun((telega@bot:context(any(), any(), any())) -> binary()),
on_done :: gleam@option:option(fun((binary(), telega@bot:context(any(), any(), any())) -> {ok, telega@bot:context(any(), any(), any())} | {error, any()})),
subs :: gleam@dict:dict(binary(), telega@dialog@engine:compiled_sub(any(), any(), any())),
storage :: telega@flow@types:flow_storage(any()),
ttl_ms :: gleam@option:option(integer()),
labels :: fun((telega@bot:context(any(), any(), any())) -> telega@dialog@types:labels()),
show_mode :: telega@dialog@types:show_mode()
}).