FunctionalHandlingDsl

DSL for functional update management.

Functions

Link copied to clipboard
fun SingleInputChain.andThen(rateLimits: RateLimits = RateLimits.NOT_LIMITED, guard: Guard = DefaultGuard, block: OnInputActivity): SingleInputChain

Adding a chain to the input data processing

Link copied to clipboard
fun SingleInputChain.breakIf(condition: ActivityCtx<ProcessedUpdate>.() -> Boolean, repeat: Boolean = true, block: OnInputActivity? = null): SingleInputChain

Condition, which will cause the chain to be interrupted if it matches.

Link copied to clipboard
fun common(value: String, filter: KClass<out Filter> = DefaultFilter::class, scope: Set<UpdateType> = DEFAULT_SCOPE, rateLimits: RateLimits = RateLimits.NOT_LIMITED, argParser: KClass<out ArgumentParser> = DefaultArgParser::class, block: OnCommandActivity)
fun common(value: Regex, filter: KClass<out Filter> = DefaultFilter::class, scope: Set<UpdateType> = DEFAULT_SCOPE, rateLimits: RateLimits = RateLimits.NOT_LIMITED, argParser: KClass<out ArgumentParser> = DefaultArgParser::class, block: OnCommandActivity)

Common action that will be checked after other activities.

Link copied to clipboard
fun inputChain(identifier: String, rateLimits: RateLimits = RateLimits.NOT_LIMITED, guard: Guard = DefaultGuard, block: OnInputActivity): SingleInputChain

Dsl for creating a chain of input processing

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onCommand(command: String, scope: Set<UpdateType> = DEFAULT_SCOPE, rateLimits: RateLimits = RateLimits.NOT_LIMITED, guard: Guard = DefaultGuard, argParser: KClass<out ArgumentParser> = DefaultArgParser::class, block: OnCommandActivity)

The action that is performed when the command is matched.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onInput(identifier: String, rateLimits: RateLimits = RateLimits.NOT_LIMITED, guard: Guard = DefaultGuard, block: OnInputActivity)

The action that is performed when the input is matched.

Link copied to clipboard

Action that is performed on the presence of eu.vendeli.tgbot.types.Update.message in the eu.vendeli.tgbot.types.Update.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Action that is performed on the presence of eu.vendeli.tgbot.types.Update.poll in the eu.vendeli.tgbot.types.Update.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Action that will be applied when none of the other handlers process the data