diff --git a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext.kt b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext.kt index 483dbc6339..09f1e8c076 100644 --- a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext.kt +++ b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext.kt @@ -217,7 +217,7 @@ fun BC.launchInNewSubContext( updatesUpstreamFlow = updatesUpstreamFlow, subcontextInitialAction = subcontextInitialAction ).apply { - launchLoggingDropExceptions(logger = Log ?: KSLog) { + this@apply.launchLoggingDropExceptions(logger = Log ?: KSLog) { behaviourContextReceiver() } }.coroutineContext.job