Current section

Files

Jump to
telega include telega@router_CustomRoute.hrl
Raw

include/telega@router_CustomRoute.hrl

-record(custom_route, {
matcher :: fun((telega@update:update()) -> boolean()),
handler :: fun((telega@bot:context(any(), any(), any()), telega@update:update()) -> {ok,
telega@bot:context(any(), any(), any())} |
{error, any()})
}).