Text

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Text(val value: Array<String>, val filter: KClass<out Filter> = DefaultFilter::class, val priority: Int = 0, val scope: Array<UpdateType> = [UpdateType.MESSAGE], val rateLimits: RateLimits = RateLimits(0, 0), val argParser: KClass<out ArgumentParser> = DefaultArgParser::class)

Annotation to specify text matching against update.

Properties

Link copied to clipboard

Custom argument parser.

Link copied to clipboard
val filter: KClass<out Filter>

condition that used in matching process.

Link copied to clipboard
val priority: Int = 0

priority of activity. (0 is highest)

Link copied to clipboard

query limits for this particular command.

Link copied to clipboard

scope UpdateType in which the command will be checked.

Link copied to clipboard

matching value.