KtgEffectHandler

ktgbotapi reports API failures by throwing (TelegramBot.execute is documented as "can throw almost any exception"), so handlers here don't return a failure EffectResult of their own — they let the exception reach ru.workinprogress.telek.EffectExecutorImpl, which logs it and turns it into an ru.workinprogress.telek.EffectFailed that reaches ru.workinprogress.telek.TelekInterceptor.onError.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun handle(bot: TelegramBot, effect: T): EffectResult
open suspend override fun handle(context: ExecutionContext, effect: T): EffectResult