diff --git a/tgbotapi.extensions.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitChatMemberUpdated.kt b/tgbotapi.extensions.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitChatMemberUpdated.kt index 27827be3e14..8e692981903 100644 --- a/tgbotapi.extensions.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitChatMemberUpdated.kt +++ b/tgbotapi.extensions.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitChatMemberUpdated.kt @@ -26,7 +26,7 @@ private suspend inline fun BehaviourContex (it as? T) ?.data.let(::listOfNotNull) }.toList().toList() -private suspend inline fun BehaviourContext.waitChatMemberUpdated( +private suspend inline fun BehaviourContext.waitChatMemberUpdatedWithFilter( count: Int = 1, initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }, @@ -48,18 +48,18 @@ suspend fun BehaviourContext.waitChatMemberUpdated( errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: ChatMemberUpdatedMapper? = null -) = waitChatMemberUpdated(count, initRequest, errorFactory, filter) +) = waitChatMemberUpdatedWithFilter(count, initRequest, errorFactory, filter) suspend fun BehaviourContext.waitCommonChatMemberUpdated( initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: ChatMemberUpdatedMapper? = null -) = waitChatMemberUpdated(count, initRequest, errorFactory, filter) +) = waitChatMemberUpdatedWithFilter(count, initRequest, errorFactory, filter) suspend fun BehaviourContext.waitMyChatMemberUpdated( initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: ChatMemberUpdatedMapper? = null -) = waitChatMemberUpdated(count, initRequest, errorFactory, filter) +) = waitChatMemberUpdatedWithFilter(count, initRequest, errorFactory, filter) diff --git a/tgbotapi.extensions.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/ChatMemberUpdatedTriggers.kt b/tgbotapi.extensions.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/ChatMemberUpdatedTriggers.kt index 180702731e3..1156af26484 100644 --- a/tgbotapi.extensions.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/ChatMemberUpdatedTriggers.kt +++ b/tgbotapi.extensions.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/ChatMemberUpdatedTriggers.kt @@ -10,7 +10,7 @@ import dev.inmo.tgbotapi.types.update.CommonChatMemberUpdatedUpdate import dev.inmo.tgbotapi.types.update.MyChatMemberUpdatedUpdate import dev.inmo.tgbotapi.types.update.abstracts.ChatMemberUpdatedUpdate -internal suspend inline fun BehaviourContext.onChatMemberUpdated( +internal suspend inline fun BehaviourContext.onChatMemberUpdatedInternal( includeFilterByChatInBehaviourSubContext: Boolean = true, noinline additionalFilter: (suspend (ChatMemberUpdated) -> Boolean)? = null, noinline scenarioReceiver: BehaviourContextAndTypeReceiver @@ -34,7 +34,7 @@ suspend fun BehaviourContext.onChatMemberUpdated( includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: (suspend (ChatMemberUpdated) -> Boolean)? = null, scenarioReceiver: BehaviourContextAndTypeReceiver -) = onChatMemberUpdated( +) = onChatMemberUpdatedInternal( includeFilterByChatInBehaviourSubContext, additionalFilter, scenarioReceiver @@ -44,7 +44,7 @@ suspend fun BehaviourContext.onCommonChatMemberUpdated( includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: (suspend (ChatMemberUpdated) -> Boolean)? = null, scenarioReceiver: BehaviourContextAndTypeReceiver -) = onChatMemberUpdated( +) = onChatMemberUpdatedInternal( includeFilterByChatInBehaviourSubContext, additionalFilter, scenarioReceiver @@ -54,7 +54,7 @@ suspend fun BehaviourContext.onMyChatMemberUpdated( includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: (suspend (ChatMemberUpdated) -> Boolean)? = null, scenarioReceiver: BehaviourContextAndTypeReceiver -) = onChatMemberUpdated( +) = onChatMemberUpdatedInternal( includeFilterByChatInBehaviourSubContext, additionalFilter, scenarioReceiver