docs

# buildBehaviourWithLongPolling

suspend fun TelegramBot . buildBehaviourWithLongPolling ( scope: CoroutineScope = defaultCoroutineScopeProvider(), defaultExceptionsHandler: ExceptionHandler< Unit >? = null, block: BehaviourContextReceiver < Unit >): Job
Content copied to clipboard

Use this method to build bot behaviour and run it via long polling. In case you wish to get FlowsUpdatesFilter for additional manipulations, you must provide external FlowsUpdatesFilter in other buildBehaviour function.

## See also

buildBehaviour
dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext
startGettingOfUpdatesByLongPolling