TelegramBotMiddlewareBuilder
Properties
Link copied to clipboard
var onAfterCallFactoryMakeCall: suspend (result: Any?, request: Request<*>, potentialFactory: KtorCallFactory) -> Any??
Link copied to clipboard
var onBeforeCallFactoryMakeCall: suspend (request: Request<*>, potentialFactory: KtorCallFactory) -> Unit?
Link copied to clipboard
var onBeforeSearchCallFactory: suspend (request: Request<*>, callsFactories: List<KtorCallFactory>) -> Unit?
Link copied to clipboard
Link copied to clipboard
var onRequestResultAbsent: suspend (request: Request<*>, callsFactories: List<KtorCallFactory>) -> Any??
Link copied to clipboard
var onRequestResultPresented: suspend (result: Any, request: Request<*>, resultCallFactory: KtorCallFactory, callsFactories: List<KtorCallFactory>) -> Any??
Link copied to clipboard
var onRequestReturnResult: suspend (result: Result<*>, request: Request<*>, callsFactories: List<KtorCallFactory>) -> Result<Any?>??
Functions
Link copied to clipboard
Link copied to clipboard
fun doOnAfterCallFactoryMakeCall(block: suspend (result: Any?, request: Request<*>, potentialFactory: KtorCallFactory) -> Any?)
Useful way to set onAfterCallFactoryMakeCall
Link copied to clipboard
fun doOnBeforeCallFactoryMakeCall(block: suspend (request: Request<*>, potentialFactory: KtorCallFactory) -> Unit)
Useful way to set onBeforeCallFactoryMakeCall
Link copied to clipboard
fun doOnBeforeSearchCallFactory(block: suspend (request: Request<*>, callsFactories: List<KtorCallFactory>) -> Unit)
Useful way to set onBeforeSearchCallFactory
Link copied to clipboard
Useful way to set onRequestException
Link copied to clipboard
fun doOnRequestResultAbsent(block: suspend (request: Request<*>, callsFactories: List<KtorCallFactory>) -> Any?)
Useful way to set onRequestResultAbsent
Link copied to clipboard
fun doOnRequestResultPresented(block: suspend (result: Any, request: Request<*>, resultCallFactory: KtorCallFactory, callsFactories: List<KtorCallFactory>) -> Any?)
Useful way to set onRequestResultPresented
Link copied to clipboard
fun doOnRequestReturnResult(block: suspend (result: Result<*>, request: Request<*>, callsFactories: List<KtorCallFactory>) -> Result<Any?>?)
Useful way to set onRequestReturnResult