From 6c9f1bc016caf45d53106976f56a568a356f0cd4 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 30 Oct 2024 14:41:22 +0600 Subject: [PATCH] get back default list of middlewares --- .../ktor/middlewares/TelegramBotMiddlewaresPipelinesHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/bot/ktor/middlewares/TelegramBotMiddlewaresPipelinesHandler.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/bot/ktor/middlewares/TelegramBotMiddlewaresPipelinesHandler.kt index 9f868db65a..37818510d1 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/bot/ktor/middlewares/TelegramBotMiddlewaresPipelinesHandler.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/bot/ktor/middlewares/TelegramBotMiddlewaresPipelinesHandler.kt @@ -8,7 +8,7 @@ import dev.inmo.tgbotapi.requests.abstracts.Request @Warning("This API is experimental and subject of changes") class TelegramBotMiddlewaresPipelinesHandler( - private val middlewares: List = listOf(ExceptionsThrottlerTelegramBotMiddleware()) + private val middlewares: List = emptyList() ) : TelegramBotPipelinesHandler { override suspend fun onRequestException(request: Request, t: Throwable): T? { return middlewares.firstNotNullOfOrNull {