TelegramBotMiddleware
Parameters
Will be called when some exception happen during Request handling. Non-null result of lambda will be used as the result of request handling
Will be called when telegram bot starts to choose which KtorCallFactory will handle Request
Will be called when telegram bot trying to use KtorCallFactory as potential handler for Request
Will be called when KtorCallFactory made call. Non-null result of lambda will be used as the result of request handling
Will be called when KtorCallFactory or TelegramBotPipelinesHandler/TelegramBotMiddleware returned non-null result. Non-null result of lambda will be used as the result of request handling
Will be called when some there is no any result of Request handling. Non-null result of lambda will be used as the result of request handling
Latest lambda before result returning. Will be called after all previous stages. Non-null result of lambda will be used as the result of request handling
Constructors
Functions
Will always be called after potentialFactory has tried to make request and got some result. If returns value - that value will be returned from dev.inmo.tgbotapi.bot.RequestsExecutor.execute instead
Will always be called before potentialFactory will try to make request
Will always be called before requests executor will check all callsFactories for an opportunity to make call of request
Will be called when any exception will happen due to the request handling. If returns value - that value will be returned from dev.inmo.tgbotapi.bot.RequestsExecutor.execute instead
Will be called when there is no KtorCallFactory from callsFactories which may handle request. If returns value - that value will be returned from dev.inmo.tgbotapi.bot.RequestsExecutor.execute instead
Will be called when resultCallFactory is the KtorCallFactory from callsFactories which has successfully handled request and returned result. If returns value - that value will be returned from dev.inmo.tgbotapi.bot.RequestsExecutor.execute instead
This step will be called when the result has been retrieved (or exception has happened). If returns value - that value will be returned from dev.inmo.tgbotapi.bot.RequestsExecutor.execute instead