diff --git a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/SendActionDSL.kt b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/SendActionDSL.kt index 17d5e175e8..ee38522ff6 100644 --- a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/SendActionDSL.kt +++ b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/send/SendActionDSL.kt @@ -24,10 +24,10 @@ public suspend fun TelegramBot.withAction( } val botActionJob = CoroutineScope(currentCoroutineContext()).launch { while (isActive) { - delay(refreshTime) safelyWithoutExceptions { execute(actionRequest) } + delay(refreshTime) } } val result = safelyWithResult { block() }