1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-14 21:00:15 +00:00
This commit is contained in:
InsanusMokrassar
2021-11-10 08:53:38 +00:00
parent 19ef4d026e
commit 79cbe073aa
238 changed files with 12196 additions and 2106 deletions

View File

@@ -121,7 +121,7 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">interface <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a> : <a href="-behaviour-context/index.html">BehaviourContext</a>, <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesMachine///PointingToDeclaration/">StatesMachine</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">interface <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>&lt;<a href="-behaviour-context-with-f-s-m/index.html">T</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt; : <a href="-behaviour-context/index.html">BehaviourContext</a>, <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesMachine///PointingToDeclaration/">StatesMachine</span>&lt;<a href="-behaviour-context-with-f-s-m/index.html">T</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Interface which combine <a href="-behaviour-context/index.html">BehaviourContext</a> and <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesMachine///PointingToDeclaration/">StatesMachine</span>. Subcontext of triggers and states contexts must have one common flow of updates and must not lose updates between updates</p></div></div>
</div>
@@ -141,7 +141,7 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">class <a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a> : <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">class <a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">T</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt; : <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">T</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
@@ -161,7 +161,7 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">fun interface <a href="-behaviour-with-f-s-m-state-handler/index.html">BehaviourWithFSMStateHandler</a>&lt;<a href="-behaviour-with-f-s-m-state-handler/index.html">T</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">fun interface <a href="-behaviour-with-f-s-m-state-handler/index.html">BehaviourWithFSMStateHandler</a>&lt;<a href="-behaviour-with-f-s-m-state-handler/index.html">I</a> : <a href="-behaviour-with-f-s-m-state-handler/index.html">O</a>, <a href="-behaviour-with-f-s-m-state-handler/index.html">O</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
@@ -181,7 +181,7 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">class <a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">I</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt;(inputKlass: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html">KClass</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">I</a>&gt;, strict: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>, delegateTo: <a href="-behaviour-with-f-s-m-state-handler/index.html">BehaviourWithFSMStateHandler</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">I</a>&gt;)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">class <a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">I</a> : <a href="-behaviour-with-f-s-m-state-handler-holder/index.html">O</a>, <a href="-behaviour-with-f-s-m-state-handler-holder/index.html">O</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt;(inputKlass: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html">KClass</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">I</a>&gt;, strict: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>, delegateTo: <a href="-behaviour-with-f-s-m-state-handler/index.html">BehaviourWithFSMStateHandler</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">I</a>, <a href="-behaviour-with-f-s-m-state-handler-holder/index.html">O</a>&gt;)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Special holder for <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>. This holder helps <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a> to understand whether it can handle input <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span> with <span data-unresolved-link="dev.inmo.tgbotapi.extensions.behaviour_builder/BehaviourWithFSMStateHandlerHolder/delegateTo/#/PointingToDeclaration/">delegateTo</span> or not</p></div></div>
</div>
@@ -281,7 +281,7 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">class <a href="-default-behaviour-context-with-f-s-m/index.html">DefaultBehaviourContextWithFSM</a>(behaviourContext: <a href="-behaviour-context/index.html">BehaviourContext</a>, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span>, handlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*&gt;&gt;) : <a href="-behaviour-context/index.html">BehaviourContext</a>, <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">class <a href="-default-behaviour-context-with-f-s-m/index.html">DefaultBehaviourContextWithFSM</a>&lt;<a href="-default-behaviour-context-with-f-s-m/index.html">T</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt;(behaviourContext: <a href="-behaviour-context/index.html">BehaviourContext</a>, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span>&lt;<a href="-default-behaviour-context-with-f-s-m/index.html">T</a>&gt;, handlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*, <a href="-default-behaviour-context-with-f-s-m/index.html">T</a>&gt;&gt;) : <a href="-behaviour-context/index.html">BehaviourContext</a>, <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>&lt;<a href="-default-behaviour-context-with-f-s-m/index.html">T</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Default realization of <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>. It uses <span data-unresolved-link="dev.inmo.tgbotapi.extensions.behaviour_builder/DefaultBehaviourContextWithFSM/behaviourContext/#/PointingToDeclaration/">behaviourContext</span> as a base for this object as <a href="-behaviour-context/index.html">BehaviourContext</a>, but managing substates contexts updates for avoiding of updates lost between states</p></div></div>
</div>
@@ -386,6 +386,26 @@
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">inline fun &lt;<a href="-behaviour-context-receiver.html">T</a>&gt; <a href="-behaviour-context-receiver.html">BehaviourContextReceiver</a>(noinline block: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a>&lt;<a href="-behaviour-context-receiver.html">T</a>&gt;): suspend <a href="-behaviour-context/index.html">BehaviourContext</a>.() -&gt; <a href="-behaviour-context-receiver.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<a data-name="-70742833%2FFunctions%2F-1982836883" anchor-label="BehaviourWithFSMStateHandlerHolder" id="-70742833%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-behaviour-with-f-s-m-state-handler-holder.html"><span>Behaviour</span><wbr></wbr><span>With</span><wbr></wbr><span>FSMState</span><wbr></wbr><span>Handler</span><wbr></wbr><span><span>Holder</span></span></a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-70742833%2FFunctions%2F-1982836883"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">inline fun &lt;<a href="-behaviour-with-f-s-m-state-handler-holder.html">I</a> : <a href="-behaviour-with-f-s-m-state-handler-holder.html">O</a>, <a href="-behaviour-with-f-s-m-state-handler-holder.html">O</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt; <a href="-behaviour-with-f-s-m-state-handler-holder.html">BehaviourWithFSMStateHandlerHolder</a>(strict: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false, delegateTo: <a href="-behaviour-with-f-s-m-state-handler/index.html">BehaviourWithFSMStateHandler</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder.html">I</a>, <a href="-behaviour-with-f-s-m-state-handler-holder.html">O</a>&gt;): <a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder.html">I</a>, <a href="-behaviour-with-f-s-m-state-handler-holder.html">O</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
@@ -403,17 +423,17 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour.html">buildBehaviour</a>(flowUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, block: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour.html">buildBehaviour</a>(flowUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a> = FlowsUpdatesFilter(), scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, block: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Use this method in case you wish to make some additional actions with <a href="build-behaviour.html">flowUpdatesFilter</a>.</p></div></div>
</div>
</div>
</div>
</div>
<a data-name="1219220751%2FFunctions%2F-1982836883" anchor-label="buildBehaviourWithFSM" id="1219220751%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
<a data-name="-983643505%2FFunctions%2F-1982836883" anchor-label="buildBehaviourWithFSM" id="-983643505%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="build-behaviour-with-f-s-m.html"><span>build</span><wbr></wbr><span>Behaviour</span><wbr></wbr><span>With</span><wbr></wbr><span><span>FSM</span></span></a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1219220751%2FFunctions%2F-1982836883"></span>
<div class=""><span class="inline-flex"><a href="build-behaviour-with-f-s-m.html"><span>build</span><wbr></wbr><span>Behaviour</span><wbr></wbr><span>With</span><wbr></wbr><span><span>FSM</span></span></a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-983643505%2FFunctions%2F-1982836883"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
@@ -423,23 +443,23 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour-with-f-s-m.html">buildBehaviourWithFSM</a>(flowUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun &lt;<a href="build-behaviour-with-f-s-m.html">T</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt; <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour-with-f-s-m.html">buildBehaviourWithFSM</a>(flowUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span>&lt;<a href="build-behaviour-with-f-s-m.html">T</a>&gt; = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*, <a href="build-behaviour-with-f-s-m.html">T</a>&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>&lt;<a href="build-behaviour-with-f-s-m.html">T</a>&gt;, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>&lt;<a href="build-behaviour-with-f-s-m.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Creates <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a> via creating of <a href="-default-behaviour-context/index.html">DefaultBehaviourContext</a> with <span data-unresolved-link="dev.inmo.tgbotapi.extensions.behaviour_builder//&amp;lt;this&amp;gt;/#/PointingToCallableParameters(-1)/">this</span> as <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>, <a href="build-behaviour-with-f-s-m.html">scope</a> as target scope for that <a href="-default-behaviour-context/index.html">DefaultBehaviourContext</a> and <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/all-updates-flow.html">FlowsUpdatesFilter.allUpdatesFlow</a> of <a href="build-behaviour-with-f-s-m.html">flowUpdatesFilter</a> as <span data-unresolved-link="dev.inmo.tgbotapi.extensions.behaviour_builder/DefaultBehaviourContext/upstreamUpdatesFlow/#/PointingToDeclaration/">DefaultBehaviourContext.upstreamUpdatesFlow</span>. Pass <a href="build-behaviour-with-f-s-m.html">statesManager</a> to customize some internal logic of states changes. Pass <a href="build-behaviour-with-f-s-m.html">presetHandlers</a> in case you have some list of <a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a> with presets. Use this method in case you wish to make some additional actions with <a href="build-behaviour-with-f-s-m.html">flowUpdatesFilter</a>.</p></div></div>
<div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour-with-f-s-m.html">buildBehaviourWithFSM</a>(upstreamUpdatesFlow: <span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span>&lt;<a href="../dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a>&gt;? = null, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun &lt;<a href="build-behaviour-with-f-s-m.html">T</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt; <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour-with-f-s-m.html">buildBehaviourWithFSM</a>(upstreamUpdatesFlow: <span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span>&lt;<a href="../dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a>&gt;? = null, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span>&lt;<a href="build-behaviour-with-f-s-m.html">T</a>&gt; = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*, <a href="build-behaviour-with-f-s-m.html">T</a>&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>&lt;<a href="build-behaviour-with-f-s-m.html">T</a>&gt;, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>&lt;<a href="build-behaviour-with-f-s-m.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Creates <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a> via creating of <a href="-default-behaviour-context/index.html">DefaultBehaviourContext</a> with <span data-unresolved-link="dev.inmo.tgbotapi.extensions.behaviour_builder//&amp;lt;this&amp;gt;/#/PointingToCallableParameters(-1)/">this</span> as <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>, <a href="build-behaviour-with-f-s-m.html">scope</a> as target scope for that <a href="-default-behaviour-context/index.html">DefaultBehaviourContext</a> and <a href="build-behaviour-with-f-s-m.html">upstreamUpdatesFlow</a>. Pass <a href="build-behaviour-with-f-s-m.html">statesManager</a> to customize some internal logic of states changes. Pass <a href="build-behaviour-with-f-s-m.html">presetHandlers</a> in case you have some list of <a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a> with presets.</p></div></div>
</div>
</div>
</div>
</div>
<a data-name="1724174918%2FFunctions%2F-1982836883" anchor-label="buildBehaviourWithFSMAndStartLongPolling" id="1724174918%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
<a data-name="-1403245154%2FFunctions%2F-1982836883" anchor-label="buildBehaviourWithFSMAndStartLongPolling" id="-1403245154%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="build-behaviour-with-f-s-m-and-start-long-polling.html"><span>build</span><wbr></wbr><span>Behaviour</span><wbr></wbr><span>With</span><wbr></wbr><span>FSMAnd</span><wbr></wbr><span>Start</span><wbr></wbr><span>Long</span><wbr></wbr><span><span>Polling</span></span></a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1724174918%2FFunctions%2F-1982836883"></span>
<div class=""><span class="inline-flex"><a href="build-behaviour-with-f-s-m-and-start-long-polling.html"><span>build</span><wbr></wbr><span>Behaviour</span><wbr></wbr><span>With</span><wbr></wbr><span>FSMAnd</span><wbr></wbr><span>Start</span><wbr></wbr><span>Long</span><wbr></wbr><span><span>Polling</span></span></a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1403245154%2FFunctions%2F-1982836883"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
@@ -449,7 +469,7 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">buildBehaviourWithFSMAndStartLongPolling</a>(scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">suspend fun <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">buildBehaviourWithFSMAndStartLongPolling</a>(upstreamUpdatesFlow: <span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span>&lt;<a href="../dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a>&gt;? = null, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a>&lt;<a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>, <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun &lt;<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">T</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt; <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">buildBehaviourWithFSMAndStartLongPolling</a>(scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span>&lt;<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">T</a>&gt; = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*, <a href="build-behaviour-with-f-s-m-and-start-long-polling.html">T</a>&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>&lt;<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">T</a>&gt;, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">suspend fun &lt;<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">T</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt; <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">buildBehaviourWithFSMAndStartLongPolling</a>(upstreamUpdatesFlow: <span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span>&lt;<a href="../dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a>&gt;? = null, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span>&lt;<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">T</a>&gt; = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*, <a href="build-behaviour-with-f-s-m-and-start-long-polling.html">T</a>&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>&lt;<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">T</a>&gt;, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a>&lt;<a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a>&lt;<a href="build-behaviour-with-f-s-m-and-start-long-polling.html">T</a>&gt;, <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Use <a href="build-behaviour-with-f-s-m.html">buildBehaviourWithFSM</a> to create <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a> and launch getting of updates using <a href="../dev.inmo.tgbotapi.extensions.utils.updates.retrieving/long-polling.html">longPolling</a>. For <a href="../dev.inmo.tgbotapi.extensions.utils.updates.retrieving/long-polling.html">longPolling</a> will be used result <a href="-behaviour-context-with-f-s-m/index.html">BehaviourContextWithFSM</a> for both parameters flowsUpdatesFilter and scope</p></div></div>
</div>
@@ -629,17 +649,17 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="telegram-bot-with-behaviour.html">telegramBotWithBehaviour</a>(token: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, flowsUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>? = null, apiUrl: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a> = telegramBotAPIDefaultUrl, builder: <a href="../dev.inmo.tgbotapi.bot.Ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a>.() -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, block: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="telegram-bot-with-behaviour.html">telegramBotWithBehaviour</a>(token: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, flowsUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a> = FlowsUpdatesFilter(), scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>? = null, apiUrl: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a> = telegramBotAPIDefaultUrl, builder: <a href="../dev.inmo.tgbotapi.bot.Ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a>.() -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, block: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Create bot using <a href="../dev.inmo.tgbotapi.bot.Ktor/telegram-bot.html">telegramBot</a> and start listening for updates using <a href="build-behaviour.html">buildBehaviour</a>. Use this method in case you wish to make some additional actions with <a href="telegram-bot-with-behaviour.html">flowsUpdatesFilter</a>.</p></div></div>
</div>
</div>
</div>
</div>
<a data-name="-565830474%2FFunctions%2F-1982836883" anchor-label="telegramBotWithBehaviourAndFSM" id="-565830474%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
<a data-name="-2102926494%2FFunctions%2F-1982836883" anchor-label="telegramBotWithBehaviourAndFSM" id="-2102926494%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="telegram-bot-with-behaviour-and-f-s-m.html"><span>telegram</span><wbr></wbr><span>Bot</span><wbr></wbr><span>With</span><wbr></wbr><span>Behaviour</span><wbr></wbr><span>And</span><wbr></wbr><span><span>FSM</span></span></a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-565830474%2FFunctions%2F-1982836883"></span>
<div class=""><span class="inline-flex"><a href="telegram-bot-with-behaviour-and-f-s-m.html"><span>telegram</span><wbr></wbr><span>Bot</span><wbr></wbr><span>With</span><wbr></wbr><span>Behaviour</span><wbr></wbr><span>And</span><wbr></wbr><span><span>FSM</span></span></a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2102926494%2FFunctions%2F-1982836883"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
@@ -649,17 +669,17 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="telegram-bot-with-behaviour-and-f-s-m.html">telegramBotWithBehaviourAndFSM</a>(token: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, flowsUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>? = null, apiUrl: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a> = telegramBotAPIDefaultUrl, builder: <a href="../dev.inmo.tgbotapi.bot.Ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a>.() -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun &lt;<a href="telegram-bot-with-behaviour-and-f-s-m.html">T</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt; <a href="telegram-bot-with-behaviour-and-f-s-m.html">telegramBotWithBehaviourAndFSM</a>(token: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, flowsUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>? = null, apiUrl: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a> = telegramBotAPIDefaultUrl, builder: <a href="../dev.inmo.tgbotapi.bot.Ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a>.() -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span>&lt;<a href="telegram-bot-with-behaviour-and-f-s-m.html">T</a>&gt; = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*, <a href="telegram-bot-with-behaviour-and-f-s-m.html">T</a>&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>&lt;<a href="telegram-bot-with-behaviour-and-f-s-m.html">T</a>&gt;, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Create bot using <a href="../dev.inmo.tgbotapi.bot.Ktor/telegram-bot.html">telegramBot</a> and start listening for updates using <a href="build-behaviour-with-f-s-m.html">buildBehaviourWithFSM</a>. Use this method in case you wish to make some additional actions with <a href="telegram-bot-with-behaviour-and-f-s-m.html">flowsUpdatesFilter</a>.</p></div></div>
</div>
</div>
</div>
</div>
<a data-name="1177464057%2FFunctions%2F-1982836883" anchor-label="telegramBotWithBehaviourAndFSMAndStartLongPolling" id="1177464057%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
<a data-name="1095537061%2FFunctions%2F-1982836883" anchor-label="telegramBotWithBehaviourAndFSMAndStartLongPolling" id="1095537061%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="telegram-bot-with-behaviour-and-f-s-m-and-start-long-polling.html"><span>telegram</span><wbr></wbr><span>Bot</span><wbr></wbr><span>With</span><wbr></wbr><span>Behaviour</span><wbr></wbr><span>And</span><wbr></wbr><span>FSMAnd</span><wbr></wbr><span>Start</span><wbr></wbr><span>Long</span><wbr></wbr><span><span>Polling</span></span></a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1177464057%2FFunctions%2F-1982836883"></span>
<div class=""><span class="inline-flex"><a href="telegram-bot-with-behaviour-and-f-s-m-and-start-long-polling.html"><span>telegram</span><wbr></wbr><span>Bot</span><wbr></wbr><span>With</span><wbr></wbr><span>Behaviour</span><wbr></wbr><span>And</span><wbr></wbr><span>FSMAnd</span><wbr></wbr><span>Start</span><wbr></wbr><span>Long</span><wbr></wbr><span><span>Polling</span></span></a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1095537061%2FFunctions%2F-1982836883"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
@@ -669,7 +689,7 @@
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="telegram-bot-with-behaviour-and-f-s-m-and-start-long-polling.html">telegramBotWithBehaviourAndFSMAndStartLongPolling</a>(token: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>? = null, apiUrl: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a> = telegramBotAPIDefaultUrl, builder: <a href="../dev.inmo.tgbotapi.bot.Ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a>.() -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span> = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a>&lt;<a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>, <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun &lt;<a href="telegram-bot-with-behaviour-and-f-s-m-and-start-long-polling.html">T</a> : <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/State///PointingToDeclaration/">State</span>&gt; <a href="telegram-bot-with-behaviour-and-f-s-m-and-start-long-polling.html">telegramBotWithBehaviourAndFSMAndStartLongPolling</a>(token: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>? = null, apiUrl: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a> = telegramBotAPIDefaultUrl, builder: <a href="../dev.inmo.tgbotapi.bot.Ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a>.() -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;? = null, statesManager: <span data-unresolved-link="dev.inmo.micro_utils.fsm.common/StatesManager///PointingToDeclaration/">StatesManager</span>&lt;<a href="telegram-bot-with-behaviour-and-f-s-m-and-start-long-polling.html">T</a>&gt; = DefaultStatesManager(InMemoryDefaultStatesManagerRepo()), presetHandlers: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a>&lt;<a href="-behaviour-with-f-s-m-state-handler-holder/index.html">BehaviourWithFSMStateHandlerHolder</a>&lt;*, <a href="telegram-bot-with-behaviour-and-f-s-m-and-start-long-polling.html">T</a>&gt;&gt; = mutableListOf(), block: <a href="index.html#-1892390839%2FClasslikes%2F-1982836883">CustomBehaviourContextReceiver</a>&lt;<a href="-behaviour-context-with-f-s-m-builder/index.html">BehaviourContextWithFSMBuilder</a>&lt;<a href="telegram-bot-with-behaviour-and-f-s-m-and-start-long-polling.html">T</a>&gt;, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>&gt;): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a>&lt;<a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>, <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<div class="brief "><p class="paragraph">Create bot using <a href="../dev.inmo.tgbotapi.bot.Ktor/telegram-bot.html">telegramBot</a> and start listening for updates using <a href="build-behaviour-with-f-s-m-and-start-long-polling.html">buildBehaviourWithFSMAndStartLongPolling</a>. This method will launch updates retrieving via long polling inside of <a href="build-behaviour-with-f-s-m-and-start-long-polling.html">buildBehaviourWithFSMAndStartLongPolling</a></p></div></div>
</div>