TelegramBotMiddlewareBuilder

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var id: String
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
var onRequestException: suspend (request: Request<*>, t: Throwable?) -> Any??
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
fun doOnRequestException(block: suspend (request: Request<*>, t: Throwable?) -> Any?)

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