suspend fun <T : State> telegramBotWithBehaviourAndFSM(    token: String,     flowsUpdatesFilter: FlowsUpdatesFilter,     scope: CoroutineScope? = null,     apiUrl: String = telegramBotAPIDefaultUrl,     builder: KtorRequestsExecutorBuilder.() -> Unit = {},     defaultExceptionsHandler: ExceptionHandler<Unit>? = null,     statesManager: StatesManager<T> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()),     presetHandlers: List<BehaviourWithFSMStateHandlerHolder<*, T>> = listOf(),     testServer: Boolean = false,     onStateHandlingErrorHandler: StateHandlingErrorHandler<T> = defaultStateHandlingErrorHandler(),     block: CustomBehaviourContextReceiver<DefaultBehaviourContextWithFSM<T>, Unit>): TelegramBot

Create bot using telegramBot and start listening for updates using buildBehaviourWithFSM. Use this method in case you wish to make some additional actions with flowsUpdatesFilter.

WARNING This method WILL NOT launch any listening of updates. Use something like startGettingOfUpdatesByLongPolling or tools for work with webhooks


Created bot which has been used to create BehaviourContext via buildBehaviourWithFSM

See also