Skip to content

Commit

Permalink
get back default list of middlewares
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Oct 30, 2024
1 parent e5bffa7 commit 6c9f1bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<TelegramBotMiddleware> = listOf(ExceptionsThrottlerTelegramBotMiddleware())
private val middlewares: List<TelegramBotMiddleware> = emptyList()
) : TelegramBotPipelinesHandler {
override suspend fun <T : Any> onRequestException(request: Request<T>, t: Throwable): T? {
return middlewares.firstNotNullOfOrNull {
Expand Down

0 comments on commit 6c9f1bc

Please sign in to comment.