From df01976ea86d24bf06d8f231658ba80503867c1d Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 8 May 2022 00:39:41 +0600 Subject: [PATCH] fix of build --- .../triggers_handling/CallbackQueryTriggers.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/CallbackQueryTriggers.kt b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/CallbackQueryTriggers.kt index 3cc9fd3fbc..45f7ee95fa 100644 --- a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/CallbackQueryTriggers.kt +++ b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/CallbackQueryTriggers.kt @@ -37,14 +37,14 @@ internal suspend inline fun B * data */ internal suspend inline fun BC.onDataCallbackQueryCounted( - noinline initialFilter: SimpleFilter? = null, + initialFilter: SimpleFilter? = null, noinline subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver? = CallbackQueryFilterByUser, markerFactory: MarkerFactory = ByUserCallbackQueryMarkerFactory, noinline scenarioReceiver: CustomBehaviourContextAndTypeReceiver ): Job { val newInitialFilter = SimpleFilter { it is T && initialFilter ?.invoke(it) ?: true - } + }::invoke return runCatchingSafely { onCallbackQuery ( initialFilter,