eu.vendeli.tgbot.annotations.CommandHandler.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegram-bot Show documentation
Show all versions of telegram-bot Show documentation
Telegram Bot API wrapper, with handy Kotlin DSL.
package eu.vendeli.tgbot.annotations
import eu.vendeli.tgbot.types.internal.CommandScope
/**
* The annotation used to mark the function that is used to process the specified commands.
*
* @property value Keywords of the command.
* @property rateLimits Query limits for this particular command.
* @property scope Scope in which the command will be checked.
*/
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
annotation class CommandHandler(
val value: Array,
val rateLimits: RateLimits = RateLimits(0, 0),
val scope: Array = [CommandScope.MESSAGE, CommandScope.CALLBACK],
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy