Declarative interface for callbacks; allows filtering callback-query events by tag.
Declarative helpers for processing channel posts.
Provides a declarative interface to define commands.
Declarative interface.
Declarative interface for processing inline queries.
Declarative helpers for processing incoming messages.
Declarative interface for processing payments.
Declarative interface for processing payments. See https://core.telegram.org/bots/payments.
Regex-based commands an inline queries.
Declarative helpers for processing updates.
Adds a filter to an action handler.
Adds a filter to an action handler.
when(onCommand('secret), isSenderAuthenticated) { implicit msg => reply("42") }
e.g onMessage, onCommand('hello)
Action executed if the filter pass.
Adds a filter to an action handler; including a fallback action.
Adds a filter to an action handler; including a fallback action.
whenOrElse(onCommand('secret), isSenderAuthenticated) { implicit msg => reply("42") } /* or else */ { reply("You must /login first")(_) }
e.g onMessage, onCommand('hello)
Action executed if the filter pass.
Action executed if the filter does not pass.