# dev.inmo.tgbotapi.extensions.behaviour_builder.utils

docs

# Package dev.inmo.tgbotapi.extensions.behaviour_builder.utils

## Types

SimpleFilter
Link copied to clipboard
fun interface SimpleFilter <in T >
Content copied to clipboard

## Functions

followLocation
Link copied to clipboard
suspend fun BehaviourContext . followLocation (message: ContentMessage < LiveLocationContent >, onLocation: BehaviourContextAndTypeReceiver < Unit , Location >)
Content copied to clipboard

Use this extension when you want to follow LiveLocation until it will became StaticLocation. This method is synchronous. You may use something like kotlinx.coroutines.launch or kotlinx.coroutines.async to run it asynchronously

listAll
Link copied to clipboard
fun < T > SimpleFilter < T >. listAll (): SimpleFilter < Iterable < T >>
Content copied to clipboard
listAny
Link copied to clipboard
fun < T > SimpleFilter < T >. listAny (): SimpleFilter < Iterable < T >>
Content copied to clipboard
listNone
Link copied to clipboard
fun < T > SimpleFilter < T >. listNone (): SimpleFilter < Iterable < T >>
Content copied to clipboard
not
Link copied to clipboard
operator fun < T > SimpleFilter < T >. not (): SimpleFilter < T >
Content copied to clipboard
operator fun < T > BehaviourContextAndTwoTypesReceiver < Boolean , T , Update >. not (): suspend BehaviourContext .( T , Update ) -> Boolean
Content copied to clipboard

Reverse results of this

plus
Link copied to clipboard
operator fun < T > SimpleFilter < T >?. plus (other: SimpleFilter < T >): SimpleFilter < T >
Content copied to clipboard
operator fun < T > BehaviourContextAndTwoTypesReceiver < Boolean , T , Update >. plus (other: BehaviourContextAndTwoTypesReceiver < Boolean , T , Update >): suspend BehaviourContext .( T , Update ) -> Boolean
Content copied to clipboard

Makes an OR (||) operation between this and other

times
Link copied to clipboard
operator fun < T > SimpleFilter < T >?. times (other: SimpleFilter < T >): SimpleFilter < T >
Content copied to clipboard
operator fun < T > BehaviourContextAndTwoTypesReceiver < Boolean , T , Update >. times (other: BehaviourContextAndTwoTypesReceiver < Boolean , T , Update >): suspend BehaviourContext .( T , Update ) -> Boolean
Content copied to clipboard

Makes an AND (&&) operation between this and other

## Properties

TrueSimpleFilter
Link copied to clipboard
val TrueSimpleFilter : SimpleFilter < Any ?>
Content copied to clipboard