1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00
tgbotapi/tgbotapi.behaviour_builder/dev.inmo.tgbotapi.extensions.behaviour_builder/index.html
2023-11-05 06:58:16 +00:00

505 lines
98 KiB
HTML

<!doctype html>
<html class="no-js">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>dev.inmo.tgbotapi.extensions.behaviour_builder</title>
<link href="../../images/logo-icon.svg" rel="icon" type="image/svg"> <script>var pathToRoot = "../../";</script>
<script>document.documentElement.classList.replace("no-js","js");</script>
<script>const storage = localStorage.getItem("dokka-dark-mode")
if (storage == null) {
const osDarkSchemePreferred = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
if (osDarkSchemePreferred === true) {
document.getElementsByTagName("html")[0].classList.add("theme-dark")
}
} else {
const savedDarkMode = JSON.parse(storage)
if(savedDarkMode === true) {
document.getElementsByTagName("html")[0].classList.add("theme-dark")
}
}
</script>
<script type="text/javascript" src="https://unpkg.com/kotlin-playground@1/dist/playground.min.js" async></script>
<script type="text/javascript" src="../../scripts/sourceset_dependencies.js" async></script>
<link href="../../styles/style.css" rel="Stylesheet">
<link href="../../styles/main.css" rel="Stylesheet">
<link href="../../styles/prism.css" rel="Stylesheet">
<link href="../../styles/logo-styles.css" rel="Stylesheet">
<link href="../../styles/font-jb-sans-auto.css" rel="Stylesheet">
<script type="text/javascript" src="../../scripts/clipboard.js" async></script>
<script type="text/javascript" src="../../scripts/navigation-loader.js" async></script>
<script type="text/javascript" src="../../scripts/platform-content-handler.js" async></script>
<script type="text/javascript" src="../../scripts/main.js" defer></script>
<script type="text/javascript" src="../../scripts/prism.js" async></script>
<script type="text/javascript" src="../../scripts/symbol-parameters-wrapper_deferred.js" defer></script></head>
<body>
<div class="root">
<nav class="navigation" id="navigation-wrapper">
<div class="navigation--inner">
<div class="navigation-title">
<button class="menu-toggle" id="menu-toggle" type="button">toggle menu</button>
<div class="library-name">
<a class="library-name--link" href="../../index.html">
ktgbotapi
</a> </div>
<div class="library-version">
</div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">common</button>
<button class="platform-tag platform-selector js-like" data-active="" data-filter=":tgbotapi.behaviour_builder:dokkaHtmlPartial/jsMain">js</button>
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":tgbotapi.behaviour_builder:dokkaHtmlPartial/jvmMain">jvm</button>
<button class="platform-tag platform-selector native-like" data-active="" data-filter=":tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxArm64Main">linuxArm64</button>
<button class="platform-tag platform-selector native-like" data-active="" data-filter=":tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxX64Main">linuxX64</button>
<button class="platform-tag platform-selector native-like" data-active="" data-filter=":tgbotapi.behaviour_builder:dokkaHtmlPartial/mingwX64Main">mingwX64</button>
</div>
</div>
<div class="navigation-controls">
<button class="navigation-controls--btn navigation-controls--theme" id="theme-toggle-button" type="button">switch theme</button>
<div class="navigation-controls--btn navigation-controls--search" id="searchBar" role="button">search in API</div>
</div>
</nav>
<div id="container">
<div class="sidebar" id="leftColumn">
<div class="sidebar--inner" id="sideMenu"></div>
</div>
<div id="main">
<div class="main-content" data-page-type="package" id="content" pageids="tgbotapi.behaviour_builder::dev.inmo.tgbotapi.extensions.behaviour_builder////PointingToDeclaration//-1962317332">
<div class="breadcrumbs"><a href="../index.html">tgbotapi.behaviour_builder</a><span class="delimiter">/</span><span class="current">dev.inmo.tgbotapi.extensions.behaviour_builder</span></div>
<div class="cover ">
<h1 class="cover"><span><span>Package-level</span></span> <span><span>declarations</span></span></h1>
</div>
<div class="tabbedcontent">
<div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="TYPE">Types</button><button class="section-tab" data-togglable="FUNCTION,EXTENSION_FUNCTION">Functions</button><button class="section-tab" data-togglable="PROPERTY,EXTENSION_PROPERTY">Properties</button></div>
<div class="tabs-section-body">
<div data-togglable="TYPE">
<h2 class="">Types</h2>
<div class="table"><a data-name="1816604265%2FClasslikes%2F148860642" anchor-label="BehaviourContext" id="1816604265%2FClasslikes%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-behaviour-context/index.html"><span>Behaviour</span><wbr><span><span>Context</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1816604265%2FClasslikes%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">interface </span><a href="-behaviour-context/index.html">BehaviourContext</a> : <a href="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, <a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-requests-executor/index.html">RequestsExecutor</a>, <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span></div><div class="brief "><p class="paragraph">This class contains all necessary tools for work with bots and especially <a href="build-behaviour.html">buildBehaviour</a></p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1930437658%2FClasslikes%2F148860642" anchor-label="BehaviourContextAndTwoTypesReceiver" id="-1930437658%2FClasslikes%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-behaviour-context-and-two-types-receiver/index.html"><span>Behaviour</span><wbr><span>Context</span><wbr><span>And</span><wbr><span>Two</span><wbr><span>Types</span><wbr><span><span>Receiver</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1930437658%2FClasslikes%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">typealias </span><a href="-behaviour-context-and-two-types-receiver/index.html">BehaviourContextAndTwoTypesReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver/index.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver/index.html">I1</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver/index.html">I2</a><span class="token operator">&gt;</span><span class="token operator"> = </span><a href="-custom-behaviour-context-and-two-types-receiver/index.html">CustomBehaviourContextAndTwoTypesReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver/index.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver/index.html">I1</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver/index.html">I2</a><span class="token operator">&gt;</span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1477624743%2FClasslikes%2F148860642" anchor-label="BehaviourContextAndTypeReceiver" id="-1477624743%2FClasslikes%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-behaviour-context-and-type-receiver/index.html"><span>Behaviour</span><wbr><span>Context</span><wbr><span>And</span><wbr><span>Type</span><wbr><span><span>Receiver</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1477624743%2FClasslikes%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">typealias </span><a href="-behaviour-context-and-type-receiver/index.html">BehaviourContextAndTypeReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context-and-type-receiver/index.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-type-receiver/index.html">I</a><span class="token operator">&gt;</span><span class="token operator"> = </span><a href="-custom-behaviour-context-and-type-receiver/index.html">CustomBehaviourContextAndTypeReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-type-receiver/index.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-type-receiver/index.html">I</a><span class="token operator">&gt;</span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="1125173050%2FClasslikes%2F148860642" anchor-label="BehaviourContextReceiver" id="1125173050%2FClasslikes%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-behaviour-context-receiver/index.html"><span>Behaviour</span><wbr><span>Context</span><wbr><span><span>Receiver</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1125173050%2FClasslikes%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">typealias </span><a href="-behaviour-context-receiver/index.html">BehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context-receiver/index.html">T</a><span class="token operator">&gt;</span><span class="token operator"> = </span><a href="-custom-behaviour-context-receiver/index.html">CustomBehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-receiver/index.html">T</a><span class="token operator">&gt;</span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1990833289%2FClasslikes%2F148860642" anchor-label="CustomBehaviourContextAndTwoTypesReceiver" id="-1990833289%2FClasslikes%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-custom-behaviour-context-and-two-types-receiver/index.html"><span>Custom</span><wbr><span>Behaviour</span><wbr><span>Context</span><wbr><span>And</span><wbr><span>Two</span><wbr><span>Types</span><wbr><span><span>Receiver</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1990833289%2FClasslikes%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">typealias </span><a href="-custom-behaviour-context-and-two-types-receiver/index.html">CustomBehaviourContextAndTwoTypesReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-custom-behaviour-context-and-two-types-receiver/index.html">BC</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-custom-behaviour-context-and-two-types-receiver/index.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-custom-behaviour-context-and-two-types-receiver/index.html">I1</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-custom-behaviour-context-and-two-types-receiver/index.html">I2</a><span class="token operator">&gt;</span><span class="token operator"> = </span><span class="token keyword">suspend </span><span class="token keyword"></span><a href="-custom-behaviour-context-and-two-types-receiver/index.html">BC</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token keyword"></span><a href="-custom-behaviour-context-and-two-types-receiver/index.html">I1</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-custom-behaviour-context-and-two-types-receiver/index.html">I2</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="-custom-behaviour-context-and-two-types-receiver/index.html">T</a></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1311499158%2FClasslikes%2F148860642" anchor-label="CustomBehaviourContextAndTypeReceiver" id="-1311499158%2FClasslikes%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-custom-behaviour-context-and-type-receiver/index.html"><span>Custom</span><wbr><span>Behaviour</span><wbr><span>Context</span><wbr><span>And</span><wbr><span>Type</span><wbr><span><span>Receiver</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1311499158%2FClasslikes%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">typealias </span><a href="-custom-behaviour-context-and-type-receiver/index.html">CustomBehaviourContextAndTypeReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-custom-behaviour-context-and-type-receiver/index.html">BC</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-custom-behaviour-context-and-type-receiver/index.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-custom-behaviour-context-and-type-receiver/index.html">I</a><span class="token operator">&gt;</span><span class="token operator"> = </span><span class="token keyword">suspend </span><span class="token keyword"></span><a href="-custom-behaviour-context-and-type-receiver/index.html">BC</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token keyword"></span><a href="-custom-behaviour-context-and-type-receiver/index.html">I</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="-custom-behaviour-context-and-type-receiver/index.html">T</a></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1892390839%2FClasslikes%2F148860642" anchor-label="CustomBehaviourContextReceiver" id="-1892390839%2FClasslikes%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-custom-behaviour-context-receiver/index.html"><span>Custom</span><wbr><span>Behaviour</span><wbr><span>Context</span><wbr><span><span>Receiver</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1892390839%2FClasslikes%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">typealias </span><a href="-custom-behaviour-context-receiver/index.html">CustomBehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-custom-behaviour-context-receiver/index.html">BC</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-custom-behaviour-context-receiver/index.html">T</a><span class="token operator">&gt;</span><span class="token operator"> = </span><span class="token keyword">suspend </span><span class="token keyword"></span><a href="-custom-behaviour-context-receiver/index.html">BC</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="-custom-behaviour-context-receiver/index.html">T</a></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="1252781460%2FClasslikes%2F148860642" anchor-label="DefaultBehaviourContext" id="1252781460%2FClasslikes%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-default-behaviour-context/index.html"><span>Default</span><wbr><span>Behaviour</span><wbr><span><span>Context</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1252781460%2FClasslikes%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">class </span><a href="-default-behaviour-context/index.html">DefaultBehaviourContext</a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">val </span>bot<span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-telegram-bot/index.html">TelegramBot</a><span class="token punctuation">, </span></span><span class="parameter "><span class="token keyword">val </span>scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token punctuation">, </span></span><span class="parameter ">broadcastChannelsSize<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token operator"> = </span><span class="token constant">100</span><span class="token punctuation">, </span></span><span class="parameter ">onBufferOverflow<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines.channels/BufferOverflow///PointingToDeclaration/">BufferOverflow</span><span class="token operator"> = </span>BufferOverflow.SUSPEND<span class="token punctuation">, </span></span><span class="parameter ">upstreamUpdatesFlow<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a><span class="token operator">&gt;</span><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter "><span class="token keyword">val </span>triggersHolder<span class="token operator">: </span><a href="../dev.inmo.tgbotapi.extensions.behaviour_builder.utils.handlers_registrar/-triggers-holder/index.html">TriggersHolder</a><span class="token operator"> = </span>TriggersHolder()</span></span><span class="token punctuation">)</span> : <a href="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-abstract-flows-updates-filter/index.html">AbstractFlowsUpdatesFilter</a>, <a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-requests-executor/index.html">RequestsExecutor</a>, <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>, <a href="-behaviour-context/index.html">BehaviourContext</a></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div data-togglable="PROPERTY">
<h2 class="">Properties</h2>
<div class="table"><a data-name="1805865768%2FProperties%2F-1962317332" anchor-label="defaultCoroutineScopeProvider" id="1805865768%2FProperties%2F-1962317332" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain,:tgbotapi.behaviour_builder:dokkaHtmlPartial/jsMain,:tgbotapi.behaviour_builder:dokkaHtmlPartial/jvmMain,:tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxArm64Main,:tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxX64Main,:tgbotapi.behaviour_builder:dokkaHtmlPartial/mingwX64Main"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain,:tgbotapi.behaviour_builder:dokkaHtmlPartial/jsMain,:tgbotapi.behaviour_builder:dokkaHtmlPartial/jvmMain,:tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxArm64Main,:tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxX64Main,:tgbotapi.behaviour_builder:dokkaHtmlPartial/mingwX64Main" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain,:tgbotapi.behaviour_builder:dokkaHtmlPartial/jsMain,:tgbotapi.behaviour_builder:dokkaHtmlPartial/jvmMain,:tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxArm64Main,:tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxX64Main,:tgbotapi.behaviour_builder:dokkaHtmlPartial/mingwX64Main">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="default-coroutine-scope-provider.html"><span>default</span><wbr><span>Coroutine</span><wbr><span>Scope</span><wbr><span><span>Provider</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1805865768%2FProperties%2F-1962317332"></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="title">
<div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted">
<div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-active="" data-toggle=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">common</button><button class="platform-bookmark" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/jsMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/jsMain" data-toggle=":tgbotapi.behaviour_builder:dokkaHtmlPartial/jsMain">js</button><button class="platform-bookmark" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/jvmMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/jvmMain" data-toggle=":tgbotapi.behaviour_builder:dokkaHtmlPartial/jvmMain">jvm</button><button class="platform-bookmark" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxArm64Main" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxArm64Main" data-toggle=":tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxArm64Main">linuxArm64</button><button class="platform-bookmark" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxX64Main" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxX64Main" data-toggle=":tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxX64Main">linuxX64</button><button class="platform-bookmark" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/mingwX64Main" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/mingwX64Main" data-toggle=":tgbotapi.behaviour_builder:dokkaHtmlPartial/mingwX64Main">mingwX64</button></div>
<div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">expect </span><span class="token keyword"></span><span class="token keyword">var </span><a href="default-coroutine-scope-provider.html">defaultCoroutineScopeProvider</a><span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span></div><div class="brief "><p class="paragraph">This function is used in <a href="build-behaviour.html">buildBehaviour</a> extensions to provide default <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> and allow to avoid all unnecessary parameters except of block</p></div></div><div class="content sourceset-dependent-content" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/jsMain"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword"></span><span class="token keyword">var </span><a href="default-coroutine-scope-provider.html">defaultCoroutineScopeProvider</a><span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span></div></div><div class="content sourceset-dependent-content" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/jvmMain"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword"></span><span class="token keyword">var </span><a href="default-coroutine-scope-provider.html">defaultCoroutineScopeProvider</a><span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span></div></div><div class="content sourceset-dependent-content" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxArm64Main"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword"></span><span class="token keyword">var </span><a href="default-coroutine-scope-provider.html">defaultCoroutineScopeProvider</a><span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span></div></div><div class="content sourceset-dependent-content" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/linuxX64Main"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword"></span><span class="token keyword">var </span><a href="default-coroutine-scope-provider.html">defaultCoroutineScopeProvider</a><span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span></div></div><div class="content sourceset-dependent-content" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/mingwX64Main"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword"></span><span class="token keyword">var </span><a href="default-coroutine-scope-provider.html">defaultCoroutineScopeProvider</a><span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span></div></div> </div>
</div>
</div>
</div>
</div>
</div>
</div>
<div data-togglable="FUNCTION">
<h2 class="">Functions</h2>
<div class="table"><a data-name="581293077%2FFunctions%2F148860642" anchor-label="asAction" id="581293077%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="as-action.html"><span>as</span><wbr><span><span>Action</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="581293077%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="as-action.html">T</a><span class="token operator">&gt; </span><span data-unresolved-link="kotlinx.coroutines/Deferred///PointingToDeclaration/">Deferred</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="as-action.html">T</a><span class="token operator">&gt;</span><span class="token punctuation">.</span><a href="as-action.html"><span class="token function">asAction</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="dev.inmo.micro_utils.coroutines/DeferredAction///PointingToDeclaration/">DeferredAction</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="as-action.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="as-action.html">T</a><span class="token operator">&gt;</span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="2038088598%2FFunctions%2F148860642" anchor-label="BehaviourContext" id="2038088598%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-behaviour-context.html"><span>Behaviour</span><wbr><span><span>Context</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="2038088598%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="-behaviour-context.html"><span class="token function">BehaviourContext</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">bot<span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-telegram-bot/index.html">TelegramBot</a><span class="token punctuation">, </span></span><span class="parameter ">scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token punctuation">, </span></span><span class="parameter ">flowsUpdatesFilter<span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a><span class="token operator"> = </span>FlowsUpdatesFilter()<span class="token punctuation">, </span></span><span class="parameter ">triggersHolder<span class="token operator">: </span><a href="../dev.inmo.tgbotapi.extensions.behaviour_builder.utils.handlers_registrar/-triggers-holder/index.html">TriggersHolder</a><span class="token operator"> = </span>TriggersHolder()</span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="-default-behaviour-context/index.html">DefaultBehaviourContext</a></div><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context.html">T</a><span class="token operator">&gt; </span><a href="-behaviour-context.html"><span class="token function">BehaviourContext</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">bot<span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-telegram-bot/index.html">TelegramBot</a><span class="token punctuation">, </span></span><span class="parameter ">scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token punctuation">, </span></span><span class="parameter ">flowsUpdatesFilter<span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a><span class="token operator"> = </span>FlowsUpdatesFilter()<span class="token punctuation">, </span></span><span class="parameter ">triggersHolder<span class="token operator">: </span><a href="../dev.inmo.tgbotapi.extensions.behaviour_builder.utils.handlers_registrar/-triggers-holder/index.html">TriggersHolder</a><span class="token operator"> = </span>TriggersHolder()<span class="token punctuation">, </span></span><span class="parameter "><span class="token keyword">crossinline </span>block<span class="token operator">: </span><span class="token keyword"></span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="-behaviour-context.html">T</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="-behaviour-context.html">T</a></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1655108055%2FFunctions%2F148860642" anchor-label="BehaviourContextAndTwoTypesReceiver" id="-1655108055%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-behaviour-context-and-two-types-receiver.html"><span>Behaviour</span><wbr><span>Context</span><wbr><span>And</span><wbr><span>Two</span><wbr><span>Types</span><wbr><span><span>Receiver</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1655108055%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver.html">I1</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver.html">I2</a><span class="token operator">&gt; </span><a href="-behaviour-context-and-two-types-receiver.html"><span class="token function">BehaviourContextAndTwoTypesReceiver</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">noinline </span>block<span class="token operator">: </span><a href="-behaviour-context-and-two-types-receiver/index.html">BehaviourContextAndTwoTypesReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver.html">I1</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver.html">I2</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><span class="token keyword">suspend </span><span class="token keyword"></span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver.html">I1</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver.html">I2</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="-behaviour-context-and-two-types-receiver.html">T</a></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="1360016445%2FFunctions%2F148860642" anchor-label="BehaviourContextAndTypeReceiver" id="1360016445%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-behaviour-context-and-type-receiver.html"><span>Behaviour</span><wbr><span>Context</span><wbr><span>And</span><wbr><span>Type</span><wbr><span><span>Receiver</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1360016445%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context-and-type-receiver.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-type-receiver.html">I</a><span class="token operator">&gt; </span><a href="-behaviour-context-and-type-receiver.html"><span class="token function">BehaviourContextAndTypeReceiver</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">noinline </span>block<span class="token operator">: </span><a href="-behaviour-context-and-type-receiver/index.html">BehaviourContextAndTypeReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context-and-type-receiver.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-behaviour-context-and-type-receiver.html">I</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><span class="token keyword">suspend </span><span class="token keyword"></span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token keyword"></span><a href="-behaviour-context-and-type-receiver.html">I</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="-behaviour-context-and-type-receiver.html">T</a></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="1838350601%2FFunctions%2F148860642" anchor-label="BehaviourContextReceiver" id="1838350601%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-behaviour-context-receiver.html"><span>Behaviour</span><wbr><span>Context</span><wbr><span><span>Receiver</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1838350601%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context-receiver.html">T</a><span class="token operator">&gt; </span><a href="-behaviour-context-receiver.html"><span class="token function">BehaviourContextReceiver</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">noinline </span>block<span class="token operator">: </span><a href="-behaviour-context-receiver/index.html">BehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-behaviour-context-receiver.html">T</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><span class="token keyword">suspend </span><span class="token keyword"></span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="-behaviour-context-receiver.html">T</a></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1866313263%2FFunctions%2F148860642" anchor-label="buildBehaviour" id="-1866313263%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="build-behaviour.html"><span>build</span><wbr><span><span>Behaviour</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1866313263%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-telegram-bot/index.html">TelegramBot</a><span class="token punctuation">.</span><a href="build-behaviour.html"><span class="token function">buildBehaviour</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">flowUpdatesFilter<span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a><span class="token operator"> = </span>FlowsUpdatesFilter()<span class="token punctuation">, </span></span><span class="parameter ">scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token operator"> = </span>defaultCoroutineScopeProvider()<span class="token punctuation">, </span></span><span class="parameter ">defaultExceptionsHandler<span class="token operator">: </span><span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator">&gt;</span><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">block<span class="token operator">: </span><a href="-behaviour-context-receiver/index.html">BehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="-behaviour-context/index.html">BehaviourContext</a></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>
</div>
<a data-name="-1665144507%2FFunctions%2F148860642" anchor-label="buildBehaviourWithLongPolling" id="-1665144507%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="build-behaviour-with-long-polling.html"><span>build</span><wbr><span>Behaviour</span><wbr><span>With</span><wbr><span>Long</span><wbr><span><span>Polling</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1665144507%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-telegram-bot/index.html">TelegramBot</a><span class="token punctuation">.</span><a href="build-behaviour-with-long-polling.html"><span class="token function">buildBehaviourWithLongPolling</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token operator"> = </span>defaultCoroutineScopeProvider()<span class="token punctuation">, </span></span><span class="parameter ">defaultExceptionsHandler<span class="token operator">: </span><span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator">&gt;</span><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">timeoutSeconds<span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.types/-seconds/index.html">Seconds</a><span class="token operator"> = </span><span class="token constant">30</span><span class="token punctuation">, </span></span><span class="parameter ">autoDisableWebhooks<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator"> = </span><span class="token boolean">true</span><span class="token punctuation">, </span></span><span class="parameter ">autoSkipTimeoutExceptions<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator"> = </span><span class="token boolean">true</span><span class="token punctuation">, </span></span><span class="parameter ">mediaGroupsDebounceTimeMillis<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a><span class="token operator">?</span><span class="token operator"> = </span><span class="token constant">1000</span><span class="token punctuation">, </span></span><span class="parameter ">block<span class="token operator">: </span><a href="-behaviour-context-receiver/index.html">BehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span></div><div class="brief "><p class="paragraph">Use this method to build bot behaviour and run it via long polling. In case you wish to get <a href="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a> for additional manipulations, you must provide external <a href="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a> in other <a href="build-behaviour.html">buildBehaviour</a> function.</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="913952816%2FFunctions%2F148860642" anchor-label="createSubContext" id="913952816%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="create-sub-context.html"><span>create</span><wbr><span>Sub</span><wbr><span><span>Context</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="913952816%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="create-sub-context.html">BC</a><span class="token operator"> : </span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token operator">&gt; </span><a href="create-sub-context.html">BC</a><span class="token punctuation">.</span><a href="create-sub-context.html"><span class="token function">createSubContext</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token operator"> = </span>LinkedSupervisorScope()<span class="token punctuation">, </span></span><span class="parameter ">triggersHolder<span class="token operator">: </span><a href="../dev.inmo.tgbotapi.extensions.behaviour_builder.utils.handlers_registrar/-triggers-holder/index.html">TriggersHolder</a><span class="token operator"> = </span>this.triggersHolder<span class="token punctuation">, </span></span><span class="parameter ">updatesUpstreamFlow<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a><span class="token operator">&gt;</span><span class="token operator"> = </span>allUpdatesFlow</span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="create-sub-context.html">BC</a></div><div class="brief "><p class="paragraph">Creates new <a href="-behaviour-context/index.html">BehaviourContext</a> using its <a href="-behaviour-context/copy.html">BehaviourContext.copy</a> method</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1355820341%2FFunctions%2F148860642" anchor-label="createSubContextAndDoWithUpdatesFilter" id="-1355820341%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="create-sub-context-and-do-with-updates-filter.html"><span>create</span><wbr><span>Sub</span><wbr><span>Context</span><wbr><span>And</span><wbr><span>Do</span><wbr><span>With</span><wbr><span>Updates</span><wbr><span><span>Filter</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1355820341%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="create-sub-context-and-do-with-updates-filter.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="create-sub-context-and-do-with-updates-filter.html">BC</a><span class="token operator"> : </span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token operator">&gt; </span><a href="create-sub-context-and-do-with-updates-filter.html">BC</a><span class="token punctuation">.</span><a href="create-sub-context-and-do-with-updates-filter.html"><span class="token function">createSubContextAndDoWithUpdatesFilter</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token operator"> = </span>LinkedSupervisorScope()<span class="token punctuation">, </span></span><span class="parameter ">triggersHolder<span class="token operator">: </span><a href="../dev.inmo.tgbotapi.extensions.behaviour_builder.utils.handlers_registrar/-triggers-holder/index.html">TriggersHolder</a><span class="token operator"> = </span>this.triggersHolder<span class="token punctuation">, </span></span><span class="parameter ">updatesUpstreamFlow<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a><span class="token operator">&gt;</span><span class="token operator"> = </span>allUpdatesFlow<span class="token punctuation">, </span></span><span class="parameter ">stopOnCompletion<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator"> = </span><span class="token boolean">true</span><span class="token punctuation">, </span></span><span class="parameter ">behaviourContextReceiver<span class="token operator">: </span><a href="-custom-behaviour-context-receiver/index.html">CustomBehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="create-sub-context-and-do-with-updates-filter.html">BC</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="create-sub-context-and-do-with-updates-filter.html">T</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="create-sub-context-and-do-with-updates-filter.html">T</a></div><div class="brief "><p class="paragraph">Creates new one <a href="-behaviour-context/index.html">BehaviourContext</a> using <a href="create-sub-context.html">createSubContext</a> and launches <a href="create-sub-context-and-do-with-updates-filter.html">behaviourContextReceiver</a> in a new context using <a href="do-in-context.html">doInContext</a></p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-807112361%2FFunctions%2F148860642" anchor-label="CustomBehaviourContextReceiver" id="-807112361%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-custom-behaviour-context-receiver.html"><span>Custom</span><wbr><span>Behaviour</span><wbr><span>Context</span><wbr><span><span>Receiver</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-807112361%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-custom-behaviour-context-receiver.html">BC</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-custom-behaviour-context-receiver.html">T</a><span class="token operator">&gt; </span><a href="-custom-behaviour-context-receiver.html"><span class="token function">CustomBehaviourContextReceiver</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">noinline </span>block<span class="token operator">: </span><a href="-custom-behaviour-context-receiver/index.html">CustomBehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="-custom-behaviour-context-receiver.html">BC</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="-custom-behaviour-context-receiver.html">T</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><span class="token keyword">suspend </span><span class="token keyword"></span><a href="-custom-behaviour-context-receiver.html">BC</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="-custom-behaviour-context-receiver.html">T</a></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-911054810%2FFunctions%2F148860642" anchor-label="doInContext" id="-911054810%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="do-in-context.html"><span>do</span><wbr><span>In</span><wbr><span><span>Context</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-911054810%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="do-in-context.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="do-in-context.html">BC</a><span class="token operator"> : </span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token operator">&gt; </span><a href="do-in-context.html">BC</a><span class="token punctuation">.</span><a href="do-in-context.html"><span class="token function">doInContext</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">stopOnCompletion<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator"> = </span><span class="token boolean">false</span><span class="token punctuation">, </span></span><span class="parameter ">behaviourContextReceiver<span class="token operator">: </span><a href="-custom-behaviour-context-receiver/index.html">CustomBehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="do-in-context.html">BC</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="do-in-context.html">T</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="do-in-context.html">T</a></div><div class="brief "><p class="paragraph">Launch <a href="do-in-context.html">behaviourContextReceiver</a> in context of <a href="../../tgbotapi.behaviour_builder/dev.inmo.tgbotapi.extensions.behaviour_builder/index.html">this</a> as <a href="-behaviour-context/index.html">BehaviourContext</a> and as <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.coroutines/-coroutine-context/index.html">kotlin.coroutines.CoroutineContext</a></p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1350944384%2FFunctions%2F148860642" anchor-label="oneOf" id="-1350944384%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="one-of.html"><span>one</span><wbr><span><span>Of</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1350944384%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="one-of.html">O</a><span class="token operator">&gt; </span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><a href="one-of.html"><span class="token function">oneOf</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">vararg </span>deferredActions<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/Deferred///PointingToDeclaration/">Deferred</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="one-of.html">O</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="one-of.html">O</a></div><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="one-of.html">O</a><span class="token operator">&gt; </span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><a href="one-of.html"><span class="token function">oneOf</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">deferredActions<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="kotlinx.coroutines/Deferred///PointingToDeclaration/">Deferred</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="one-of.html">O</a><span class="token operator">&gt;</span><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="one-of.html">O</a></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="1133370546%2FFunctions%2F148860642" anchor-label="oneOfActions" id="1133370546%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="one-of-actions.html"><span>one</span><wbr><span>Of</span><wbr><span><span>Actions</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1133370546%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="one-of-actions.html">O</a><span class="token operator">&gt; </span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><a href="one-of-actions.html"><span class="token function">oneOfActions</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">vararg </span>deferredActions<span class="token operator">: </span><span data-unresolved-link="dev.inmo.micro_utils.coroutines/DeferredAction///PointingToDeclaration/">DeferredAction</span><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token punctuation">, </span><span class="token keyword"></span><a href="one-of-actions.html">O</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="one-of-actions.html">O</a></div><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="one-of-actions.html">O</a><span class="token operator">&gt; </span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><a href="one-of-actions.html"><span class="token function">oneOfActions</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">deferredActions<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="dev.inmo.micro_utils.coroutines/DeferredAction///PointingToDeclaration/">DeferredAction</span><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token punctuation">, </span><span class="token keyword"></span><a href="one-of-actions.html">O</a><span class="token operator">&gt;</span><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="one-of-actions.html">O</a></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1371839354%2FFunctions%2F148860642" anchor-label="parallel" id="-1371839354%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="parallel.html"><span><span>parallel</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1371839354%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="parallel.html">T</a><span class="token operator">&gt; </span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><a href="parallel.html"><span class="token function">parallel</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">action<span class="token operator">: </span><a href="-behaviour-context-receiver/index.html">BehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="parallel.html">T</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/Deferred///PointingToDeclaration/">Deferred</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="parallel.html">T</a><span class="token operator">&gt;</span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="67254337%2FFunctions%2F148860642" anchor-label="stop" id="67254337%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="stop.html"><span><span>stop</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="67254337%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><a href="stop.html"><span class="token function">stop</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span></div><div class="brief "><p class="paragraph">This method will cancel ALL subsequent contexts, expectations and waiters</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1347808479%2FFunctions%2F148860642" anchor-label="telegramBotWithBehaviour" id="-1347808479%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="telegram-bot-with-behaviour.html"><span>telegram</span><wbr><span>Bot</span><wbr><span>With</span><wbr><span><span>Behaviour</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1347808479%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="telegram-bot-with-behaviour.html"><span class="token function">telegramBotWithBehaviour</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">token<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><span class="token punctuation">, </span></span><span class="parameter ">flowsUpdatesFilter<span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a><span class="token operator"> = </span>FlowsUpdatesFilter()<span class="token punctuation">, </span></span><span class="parameter ">scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">apiUrl<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><span class="token operator"> = </span>telegramBotAPIDefaultUrl<span class="token punctuation">, </span></span><span class="parameter ">builder<span class="token operator">: </span><span class="token keyword"></span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot.ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator"> = </span>{}<span class="token punctuation">, </span></span><span class="parameter ">defaultExceptionsHandler<span class="token operator">: </span><span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator">&gt;</span><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">testServer<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator"> = </span><span class="token boolean">false</span><span class="token punctuation">, </span></span><span class="parameter ">block<span class="token operator">: </span><a href="-behaviour-context-receiver/index.html">BehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-telegram-bot/index.html">TelegramBot</a></div><div class="brief "><p class="paragraph">Create bot using <a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot.ktor/index.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>
</div>
<a data-name="327882600%2FFunctions%2F148860642" anchor-label="telegramBotWithBehaviourAndLongPolling" id="327882600%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="telegram-bot-with-behaviour-and-long-polling.html"><span>telegram</span><wbr><span>Bot</span><wbr><span>With</span><wbr><span>Behaviour</span><wbr><span>And</span><wbr><span>Long</span><wbr><span><span>Polling</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="327882600%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="telegram-bot-with-behaviour-and-long-polling.html"><span class="token function">telegramBotWithBehaviourAndLongPolling</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">token<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><span class="token punctuation">, </span></span><span class="parameter ">scope<span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">apiUrl<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><span class="token operator"> = </span>telegramBotAPIDefaultUrl<span class="token punctuation">, </span></span><span class="parameter ">builder<span class="token operator">: </span><span class="token keyword"></span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot.ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a><span class="token punctuation">.</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator"> = </span>{}<span class="token punctuation">, </span></span><span class="parameter ">defaultExceptionsHandler<span class="token operator">: </span><span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator">&gt;</span><span class="token operator">?</span><span class="token operator"> = </span>null<span class="token punctuation">, </span></span><span class="parameter ">testServer<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator"> = </span><span class="token boolean">false</span><span class="token punctuation">, </span></span><span class="parameter ">timeoutSeconds<span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.types/-seconds/index.html">Seconds</a><span class="token operator"> = </span><span class="token constant">30</span><span class="token punctuation">, </span></span><span class="parameter ">autoDisableWebhooks<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator"> = </span><span class="token boolean">true</span><span class="token punctuation">, </span></span><span class="parameter ">autoSkipTimeoutExceptions<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="token operator"> = </span><span class="token boolean">true</span><span class="token punctuation">, </span></span><span class="parameter ">mediaGroupsDebounceTimeMillis<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a><span class="token operator">?</span><span class="token operator"> = </span><span class="token constant">1000</span><span class="token punctuation">, </span></span><span class="parameter ">block<span class="token operator">: </span><a href="-behaviour-context-receiver/index.html">BehaviourContextReceiver</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator">&gt;</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-telegram-bot/index.html">TelegramBot</a><span class="token punctuation">, </span><span class="token keyword"></span><span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Create bot using <a href="../../tgbotapi.core/dev.inmo.tgbotapi.bot.ktor/index.html">telegramBot</a> and start listening for updates using <a href="build-behaviour-with-long-polling.html">buildBehaviourWithLongPolling</a>. Use this method in case you wish to make some additional actions with flowsUpdatesFilter.</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="484953640%2FFunctions%2F148860642" anchor-label="withAction" id="484953640%2FFunctions%2F148860642" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-togglable="EXTENSION_FUNCTION" data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="with-action.html"><span>with</span><wbr><span><span>Action</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="484953640%2FFunctions%2F148860642"></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="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">infix inline </span><span class="token keyword">fun </span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="with-action.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="with-action.html">O</a><span class="token operator">&gt; </span><span data-unresolved-link="kotlinx.coroutines/Deferred///PointingToDeclaration/">Deferred</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="with-action.html">T</a><span class="token operator">&gt;</span><span class="token punctuation">.</span><a href="with-action.html"><span class="token function">withAction</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter "><span class="token keyword">noinline </span>callback<span class="token operator">: </span><span class="token keyword">suspend </span><span class="token punctuation">(</span><span class="token keyword"></span><a href="with-action.html">T</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="with-action.html">O</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="dev.inmo.micro_utils.coroutines/DeferredAction///PointingToDeclaration/">DeferredAction</span><span class="token operator">&lt;</span><span class="token keyword"></span><a href="with-action.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="with-action.html">O</a><span class="token operator">&gt;</span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2023 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span>
</div>
</div>
</div>
</div>
</body>
</html>