invoke
operator fun invoke(exceptionDurationMultiplier: Float = 2.0f, initialExceptionDuration: <Error class: unknown class> = 125.milliseconds): TelegramBotMiddleware
Creates TelegramBotMiddleware and configures it with next parameters:
TelegramBotMiddleware.onRequestException will throttle after exception if exception has happened before
TelegramBotMiddleware.onRequestReturnResult will clear state of all exceptions happened with the Request if its handling has been completed successfully