mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-23 17:17:13 +00:00
412 lines
58 KiB
HTML
412 lines
58 KiB
HTML
<html>
|
|
<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 type="text/javascript" src="../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../styles/style.css" rel="Stylesheet"><link href="../../styles/logo-styles.css" rel="Stylesheet"><link href="../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../scripts/main.js" async="async"></script> </head>
|
|
<body>
|
|
<div id="container">
|
|
<div id="leftColumn"><a href="../../index.html">
|
|
<div id="logo"></div>
|
|
</a>
|
|
<div id="paneSearch"></div>
|
|
<div id="sideMenu"></div>
|
|
</div>
|
|
<div id="main">
|
|
<div id="leftToggler"><span class="icon-toggler"></span></div>
|
|
<script type="text/javascript" src="../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="docs::dev.inmo.tgbotapi.extensions.behaviour_builder////PointingToDeclaration//134499397">
|
|
<div class="navigation-wrapper" id="navigation-wrapper">
|
|
<div class="breadcrumbs"><a href="../../index.html">docs</a>/<a href="index.html">dev.inmo.tgbotapi.extensions.behaviour_builder</a></div>
|
|
<div class="pull-right d-flex">
|
|
<div class="filter-section" id="filter-section"><button class="platform-tag platform-selector common-like" data-active="" data-filter=":docs:dokkaHtml/commonMain">common</button><button class="platform-tag platform-selector js-like" data-active="" data-filter=":docs:dokkaHtml/jsMain">js</button><button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":docs:dokkaHtml/jvmMain">jvm</button></div>
|
|
<div id="searchBar"></div>
|
|
</div>
|
|
</div>
|
|
<div class="cover ">
|
|
<h1 class="cover"><span>Package dev.</span><wbr></wbr><span>inmo.</span><wbr></wbr><span>tgbotapi.</span><wbr></wbr><span>extensions.</span><wbr></wbr><span>behaviour_builder</span></h1>
|
|
</div>
|
|
<div class="tabbedcontent">
|
|
<div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Types">Types</button><button class="section-tab" data-togglable="Functions">Functions</button><button class="section-tab" data-togglable="Properties">Properties</button></div>
|
|
<div class="tabs-section-body">
|
|
<h2 class="">Types</h2>
|
|
<div class="table" data-togglable="Types"><a data-name="1816604265%2FClasslikes%2F-1982836883" anchor-label="BehaviourContext" id="1816604265%2FClasslikes%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="-behaviour-context/index.html">BehaviourContext</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1816604265%2FClasslikes%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">interface <a href="-behaviour-context/index.html">BehaviourContext</a> : <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, <a href="../dev.inmo.tgbotapi.bot/-requests-executor/index.html">RequestsExecutor</a>, <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
<a data-name="1816604265%2FClasslikes%2F-1982836883" anchor-label="BehaviourContext" id="1816604265%2FClasslikes%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a><div class="brief "><a data-name="1816604265%2FClasslikes%2F-1982836883" anchor-label="BehaviourContext" id="1816604265%2FClasslikes%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>This class contains all necessary tools for work with bots and especially for <span data-unresolved-link="dev.inmo.tgbotapi.extensions.behaviour_builder//buildBehaviour/dev.inmo.tgbotapi.bot.RequestsExecutor#kotlinx.coroutines.CoroutineScope#dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter#kotlin.coroutines.SuspendFunction1[kotlin.Throwable,kotlin.Unit]?#kotlin.coroutines.SuspendFunction1[dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext,kotlin.Unit]/PointingToDeclaration/">buildBehaviour</span></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="-1930437658%2FClasslikes%2F-1982836883" anchor-label="BehaviourContextAndTwoTypesReceiver" id="-1930437658%2FClasslikes%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="index.html#-1930437658%2FClasslikes%2F-1982836883">BehaviourContextAndTwoTypesReceiver</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1930437658%2FClasslikes%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">typealias <a href="index.html#-1930437658%2FClasslikes%2F-1982836883">BehaviourContextAndTwoTypesReceiver</a><<a href="index.html#-1930437658%2FClasslikes%2F-1982836883">T</a>, <a href="index.html#-1930437658%2FClasslikes%2F-1982836883">I1</a>, <a href="index.html#-1930437658%2FClasslikes%2F-1982836883">I2</a>> = suspend <a href="-behaviour-context/index.html">BehaviourContext</a>.(<a href="index.html#-1930437658%2FClasslikes%2F-1982836883">I1</a>, <a href="index.html#-1930437658%2FClasslikes%2F-1982836883">I2</a>) -> <a href="index.html#-1930437658%2FClasslikes%2F-1982836883">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="-1477624743%2FClasslikes%2F-1982836883" anchor-label="BehaviourContextAndTypeReceiver" id="-1477624743%2FClasslikes%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="index.html#-1477624743%2FClasslikes%2F-1982836883">BehaviourContextAndTypeReceiver</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1477624743%2FClasslikes%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">typealias <a href="index.html#-1477624743%2FClasslikes%2F-1982836883">BehaviourContextAndTypeReceiver</a><<a href="index.html#-1477624743%2FClasslikes%2F-1982836883">T</a>, <a href="index.html#-1477624743%2FClasslikes%2F-1982836883">I</a>> = suspend <a href="-behaviour-context/index.html">BehaviourContext</a>.(<a href="index.html#-1477624743%2FClasslikes%2F-1982836883">I</a>) -> <a href="index.html#-1477624743%2FClasslikes%2F-1982836883">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="1125173050%2FClasslikes%2F-1982836883" anchor-label="BehaviourContextReceiver" id="1125173050%2FClasslikes%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1125173050%2FClasslikes%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">typealias <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><<a href="index.html#1125173050%2FClasslikes%2F-1982836883">T</a>> = suspend <a href="-behaviour-context/index.html">BehaviourContext</a>.() -> <a href="index.html#1125173050%2FClasslikes%2F-1982836883">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="1252781460%2FClasslikes%2F-1982836883" anchor-label="DefaultBehaviourContext" id="1252781460%2FClasslikes%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="-default-behaviour-context/index.html">DefaultBehaviourContext</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1252781460%2FClasslikes%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">class <a href="-default-behaviour-context/index.html">DefaultBehaviourContext</a>(bot: <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>, flowsUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>) : <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, <a href="../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><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h2 class="">Functions</h2>
|
|
<div class="table" data-togglable="Functions"><a data-name="581293077%2FFunctions%2F-1982836883" anchor-label="asAction" id="581293077%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="as-action.html">asAction</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="581293077%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">inline fun <<a href="as-action.html">T</a>> <span data-unresolved-link="kotlinx.coroutines/Deferred///PointingToDeclaration/">Deferred</span><<a href="as-action.html">T</a>>.<a href="as-action.html">asAction</a>(): <span data-unresolved-link="dev.inmo.micro_utils.coroutines/DeferredAction///PointingToDeclaration/">DeferredAction</span><<a href="as-action.html">T</a>, <a href="as-action.html">T</a>><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="1569061000%2FFunctions%2F-1982836883" anchor-label="BehaviourContext" id="1569061000%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="-behaviour-context.html">BehaviourContext</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1569061000%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">fun <a href="-behaviour-context.html">BehaviourContext</a>(bot: <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>, flowsUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a> = FlowsUpdatesFilter()): <a href="-default-behaviour-context/index.html">DefaultBehaviourContext</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="-1693679251%2FFunctions%2F-1982836883" anchor-label="buildBehaviour" id="-1693679251%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="build-behaviour.html">buildBehaviour</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1693679251%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour.html">buildBehaviour</a>(scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>>? = null, block: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>>): <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
<a data-name="1598639208%2FFunctions%2F-1982836883" anchor-label="buildBehaviour" id="1598639208%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a><div class="brief "><a data-name="1598639208%2FFunctions%2F-1982836883" anchor-label="buildBehaviour" id="1598639208%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>Use this method to build bot behaviour and run it via long polling.</div></div>
|
|
<div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<a href="build-behaviour.html">buildBehaviour</a>(flowUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> = defaultCoroutineScopeProvider(), defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>>? = null, block: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>>)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
<a data-name="-1866313263%2FFunctions%2F-1982836883" anchor-label="buildBehaviour" id="-1866313263%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a><div class="brief "><a data-name="-1866313263%2FFunctions%2F-1982836883" anchor-label="buildBehaviour" id="-1866313263%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>Use this method in case you wish to make some additional actions with <a href="build-behaviour.html">flowUpdatesFilter</a>.</div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="-600858640%2FFunctions%2F-1982836883" anchor-label="doInSubContext" id="-600858640%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="do-in-sub-context.html">doInSubContext</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-600858640%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <<a href="do-in-sub-context.html">T</a>> <a href="-behaviour-context/index.html">BehaviourContext</a>.<a href="do-in-sub-context.html">doInSubContext</a>(stopOnCompletion: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = true, behaviourContextReceiver: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><<a href="do-in-sub-context.html">T</a>>): <a href="do-in-sub-context.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="-243856564%2FFunctions%2F-1982836883" anchor-label="doInSubContextWithFlowsUpdatesFilterSetup" id="-243856564%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="do-in-sub-context-with-flows-updates-filter-setup.html">doInSubContextWithFlowsUpdatesFilterSetup</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-243856564%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <<a href="do-in-sub-context-with-flows-updates-filter-setup.html">T</a>> <a href="-behaviour-context/index.html">BehaviourContext</a>.<a href="do-in-sub-context-with-flows-updates-filter-setup.html">doInSubContextWithFlowsUpdatesFilterSetup</a>(newFlowsUpdatesFilterSetUp: <a href="index.html#-1477624743%2FClasslikes%2F-1982836883">BehaviourContextAndTypeReceiver</a><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>, <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>>?, stopOnCompletion: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = true, behaviourContextReceiver: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><<a href="do-in-sub-context-with-flows-updates-filter-setup.html">T</a>>): <a href="do-in-sub-context-with-flows-updates-filter-setup.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
<a data-name="-243856564%2FFunctions%2F-1982836883" anchor-label="doInSubContextWithFlowsUpdatesFilterSetup" id="-243856564%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a><div class="brief "><a data-name="-243856564%2FFunctions%2F-1982836883" anchor-label="doInSubContextWithFlowsUpdatesFilterSetup" id="-243856564%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>Creates new one <a href="-behaviour-context/index.html">BehaviourContext</a>, adding subsequent <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a> in case <a href="do-in-sub-context-with-flows-updates-filter-setup.html">newFlowsUpdatesFilterSetUp</a> is provided and <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> as new <a href="-behaviour-context/scope.html">BehaviourContext.scope</a>.</div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="1677024258%2FFunctions%2F-1982836883" anchor-label="doInSubContextWithUpdatesFilter" id="1677024258%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="do-in-sub-context-with-updates-filter.html">doInSubContextWithUpdatesFilter</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1677024258%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <<a href="do-in-sub-context-with-updates-filter.html">T</a>> <a href="-behaviour-context/index.html">BehaviourContext</a>.<a href="do-in-sub-context-with-updates-filter.html">doInSubContextWithUpdatesFilter</a>(updatesFilter: <a href="index.html#-1477624743%2FClasslikes%2F-1982836883">BehaviourContextAndTypeReceiver</a><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>, <a href="../dev.inmo.tgbotapi.types.update.abstracts/-update/index.html">Update</a>>?, stopOnCompletion: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = true, behaviourContextReceiver: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><<a href="do-in-sub-context-with-updates-filter.html">T</a>>): <a href="do-in-sub-context-with-updates-filter.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
<a data-name="1677024258%2FFunctions%2F-1982836883" anchor-label="doInSubContextWithUpdatesFilter" id="1677024258%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a><div class="brief "><a data-name="1677024258%2FFunctions%2F-1982836883" anchor-label="doInSubContextWithUpdatesFilter" id="1677024258%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>Creates new one <a href="-behaviour-context/index.html">BehaviourContext</a>, adding subsequent <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a> in case <a href="do-in-sub-context-with-updates-filter.html">updatesFilter</a> is provided and <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> as new <a href="-behaviour-context/scope.html">BehaviourContext.scope</a></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="-1350944384%2FFunctions%2F-1982836883" anchor-label="oneOf" id="-1350944384%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="one-of.html">oneOf</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1350944384%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <<a href="one-of.html">O</a>> <a href="-behaviour-context/index.html">BehaviourContext</a>.<a href="one-of.html">oneOf</a>(vararg deferredActions: <span data-unresolved-link="kotlinx.coroutines/Deferred///PointingToDeclaration/">Deferred</span><<a href="one-of.html">O</a>>): <a href="one-of.html">O</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">suspend fun <<a href="one-of.html">O</a>> <a href="-behaviour-context/index.html">BehaviourContext</a>.<a href="one-of.html">oneOf</a>(deferredActions: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a><<span data-unresolved-link="kotlinx.coroutines/Deferred///PointingToDeclaration/">Deferred</span><<a href="one-of.html">O</a>>>): <a href="one-of.html">O</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="1133370546%2FFunctions%2F-1982836883" anchor-label="oneOfActions" id="1133370546%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="one-of-actions.html">oneOfActions</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1133370546%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <<a href="one-of-actions.html">O</a>> <a href="-behaviour-context/index.html">BehaviourContext</a>.<a href="one-of-actions.html">oneOfActions</a>(vararg deferredActions: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/DeferredAction///PointingToDeclaration/">DeferredAction</span><*, <a href="one-of-actions.html">O</a>>): <a href="one-of-actions.html">O</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">suspend fun <<a href="one-of-actions.html">O</a>> <a href="-behaviour-context/index.html">BehaviourContext</a>.<a href="one-of-actions.html">oneOfActions</a>(deferredActions: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html">Iterable</a><<span data-unresolved-link="dev.inmo.micro_utils.coroutines/DeferredAction///PointingToDeclaration/">DeferredAction</span><*, <a href="one-of-actions.html">O</a>>>): <a href="one-of-actions.html">O</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="-1371839354%2FFunctions%2F-1982836883" anchor-label="parallel" id="-1371839354%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="parallel.html">parallel</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1371839354%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <<a href="parallel.html">T</a>> <a href="-behaviour-context/index.html">BehaviourContext</a>.<a href="parallel.html">parallel</a>(action: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><<a href="parallel.html">T</a>>): <span data-unresolved-link="kotlinx.coroutines/Deferred///PointingToDeclaration/">Deferred</span><<a href="parallel.html">T</a>><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="67254337%2FFunctions%2F-1982836883" anchor-label="stop" id="67254337%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="stop.html">stop</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="67254337%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">fun <a href="-behaviour-context/index.html">BehaviourContext</a>.<a href="stop.html">stop</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
<a data-name="67254337%2FFunctions%2F-1982836883" anchor-label="stop" id="67254337%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a><div class="brief "><a data-name="67254337%2FFunctions%2F-1982836883" anchor-label="stop" id="67254337%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>This method will cancel ALL subsequent contexts, expectations and waiters</div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="748606999%2FFunctions%2F-1982836883" anchor-label="telegramBotWithBehaviour" id="748606999%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="telegram-bot-with-behaviour.html">telegramBotWithBehaviour</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="748606999%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="telegram-bot-with-behaviour.html">telegramBotWithBehaviour</a>(token: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>? = null, apiUrl: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a> = telegramBotAPIDefaultUrl, builder: <a href="../dev.inmo.tgbotapi.bot.Ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a>.() -> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>>? = null, block: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>>): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a><<a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>, <span data-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span>><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
<a data-name="1430095628%2FFunctions%2F-1982836883" anchor-label="telegramBotWithBehaviour" id="1430095628%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a><div class="brief "><a data-name="1430095628%2FFunctions%2F-1982836883" anchor-label="telegramBotWithBehaviour" id="1430095628%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>Create bot using <a href="../dev.inmo.tgbotapi.bot.Ktor/telegram-bot.html">telegramBot</a> and start listening for updates using <span data-unresolved-link="dev.inmo.tgbotapi.extensions.behaviour_builder//buildBehaviour/dev.inmo.tgbotapi.bot.RequestsExecutor#kotlinx.coroutines.CoroutineScope#dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter#kotlin.coroutines.SuspendFunction1[kotlin.Throwable,kotlin.Unit]?#kotlin.coroutines.SuspendFunction1[dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext,kotlin.Unit]/PointingToDeclaration/">buildBehaviour</span>.</div></div>
|
|
<div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <a href="telegram-bot-with-behaviour.html">telegramBotWithBehaviour</a>(token: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, flowsUpdatesFilter: <a href="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a>, scope: <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span>? = null, apiUrl: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a> = telegramBotAPIDefaultUrl, builder: <a href="../dev.inmo.tgbotapi.bot.Ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a>.() -> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a> = {}, defaultExceptionsHandler: <span data-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>>? = null, block: <a href="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>>): <a href="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
<a data-name="1220916119%2FFunctions%2F-1982836883" anchor-label="telegramBotWithBehaviour" id="1220916119%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a><div class="brief "><a data-name="1220916119%2FFunctions%2F-1982836883" anchor-label="telegramBotWithBehaviour" id="1220916119%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>Create bot using <a href="../dev.inmo.tgbotapi.bot.Ktor/telegram-bot.html">telegramBot</a> and start listening for updates using <span data-unresolved-link="dev.inmo.tgbotapi.extensions.behaviour_builder//buildBehaviour/dev.inmo.tgbotapi.bot.RequestsExecutor#kotlinx.coroutines.CoroutineScope#dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter#kotlin.coroutines.SuspendFunction1[kotlin.Throwable,kotlin.Unit]?#kotlin.coroutines.SuspendFunction1[dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext,kotlin.Unit]/PointingToDeclaration/">buildBehaviour</span>.</div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a data-name="484953640%2FFunctions%2F-1982836883" anchor-label="withAction" id="484953640%2FFunctions%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="with-action.html">withAction</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="484953640%2FFunctions%2F-1982836883"></span>
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
</span></span></div>
|
|
<div>
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace">infix inline fun <<a href="with-action.html">T</a>, <a href="with-action.html">O</a>> <span data-unresolved-link="kotlinx.coroutines/Deferred///PointingToDeclaration/">Deferred</span><<a href="with-action.html">T</a>>.<a href="with-action.html">withAction</a>(noinline callback: suspend (<a href="with-action.html">T</a>) -> <a href="with-action.html">O</a>): <span data-unresolved-link="dev.inmo.micro_utils.coroutines/DeferredAction///PointingToDeclaration/">DeferredAction</span><<a href="with-action.html">T</a>, <a href="with-action.html">O</a>><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h2 class="">Properties</h2>
|
|
<div class="table" data-togglable="Properties"><a data-name="1805865768%2FProperties%2F134499397" anchor-label="defaultCoroutineScopeProvider" id="1805865768%2FProperties%2F134499397" data-filterable-set=":docs:dokkaHtml/commonMain :docs:dokkaHtml/jsMain :docs:dokkaHtml/jvmMain"></a>
|
|
<div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain :docs:dokkaHtml/jsMain :docs:dokkaHtml/jvmMain" data-filterable-set=":docs:dokkaHtml/commonMain :docs:dokkaHtml/jsMain :docs:dokkaHtml/jvmMain">
|
|
<div class="main-subrow keyValue ">
|
|
<div class=""><span class="inline-flex"><a href="default-coroutine-scope-provider.html">defaultCoroutineScopeProvider</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1805865768%2FProperties%2F134499397"></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" data-togglable="Properties">
|
|
<div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain" data-active="" data-toggle=":docs:dokkaHtml/commonMain">common</button><button class="platform-bookmark js-like" data-filterable-current=":docs:dokkaHtml/jsMain" data-filterable-set=":docs:dokkaHtml/jsMain" data-toggle=":docs:dokkaHtml/jsMain">js</button><button class="platform-bookmark jvm-like" data-filterable-current=":docs:dokkaHtml/jvmMain" data-filterable-set=":docs:dokkaHtml/jvmMain" data-toggle=":docs:dokkaHtml/jvmMain">jvm</button></div>
|
|
<div class="content sourceset-depenent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><a data-name="1805865768%2FProperties%2F134499397" anchor-label="defaultCoroutineScopeProvider" id="1805865768%2FProperties%2F134499397" data-filterable-set=":docs:dokkaHtml/commonMain :docs:dokkaHtml/jsMain :docs:dokkaHtml/jvmMain"></a><div class="symbol monospace">var <a href="default-coroutine-scope-provider.html">defaultCoroutineScopeProvider</a>: () -> <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="1805865768%2FProperties%2F-1982836883" anchor-label="defaultCoroutineScopeProvider" id="1805865768%2FProperties%2F-1982836883" data-filterable-set=":docs:dokkaHtml/commonMain"></a>This function is used in <span data-unresolved-link="dev.inmo.tgbotapi.extensions.behaviour_builder//buildBehaviour/dev.inmo.tgbotapi.bot.RequestsExecutor#kotlinx.coroutines.CoroutineScope#dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter#kotlin.coroutines.SuspendFunction1[kotlin.Throwable,kotlin.Unit]?#kotlin.coroutines.SuspendFunction1[dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext,kotlin.Unit]/PointingToDeclaration/">buildBehaviour</span> extensions to provide default <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span> and allow to avoid all unnecessary parameters except of block</div></div><div class="content sourceset-depenent-content" data-togglable=":docs:dokkaHtml/jsMain"><a data-name="1805865768%2FProperties%2F134499397" anchor-label="defaultCoroutineScopeProvider" id="1805865768%2FProperties%2F134499397" data-filterable-set=":docs:dokkaHtml/commonMain :docs:dokkaHtml/jsMain :docs:dokkaHtml/jvmMain"></a><div class="symbol monospace">var <a href="default-coroutine-scope-provider.html">defaultCoroutineScopeProvider</a>: () -> <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div><div class="content sourceset-depenent-content" data-togglable=":docs:dokkaHtml/jvmMain"><a data-name="1805865768%2FProperties%2F134499397" anchor-label="defaultCoroutineScopeProvider" id="1805865768%2FProperties%2F134499397" data-filterable-set=":docs:dokkaHtml/commonMain :docs:dokkaHtml/jsMain :docs:dokkaHtml/jvmMain"></a><div class="symbol monospace">var <a href="default-coroutine-scope-provider.html">defaultCoroutineScopeProvider</a>: () -> <span data-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div> </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 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>
|
|
</body>
|
|
</html>
|
|
|