<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-telegram-bot/index.html">TelegramBot</a><spanclass="token punctuation">.</span><ahref="build-behaviour.html"><spanclass="token function">buildBehaviour</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">flowUpdatesFilter<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a><spanclass="token operator"> = </span>FlowsUpdatesFilter()<spanclass="token punctuation">, </span></span><spanclass="parameter ">scope<spanclass="token operator">: </span><spandata-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><spanclass="token operator"> = </span>defaultCoroutineScopeProvider()<spanclass="token punctuation">, </span></span><spanclass="parameter ">defaultExceptionsHandler<spanclass="token operator">: </span><spandata-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><spanclass="token operator"><</span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><spanclass="token operator">></span><spanclass="token operator">?</span><spanclass="token operator"> = </span>null<spanclass="token punctuation">, </span></span><spanclass="parameter ">block<spanclass="token operator">: </span><ahref="-behaviour-context-receiver/index.html">BehaviourContextReceiver</a><spanclass="token operator"><</span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><spanclass="token operator">></span></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="-behaviour-context/index.html">BehaviourContext</a></div><pclass="paragraph">Use this method in case you wish to make some additional actions with <ahref="build-behaviour.html">flowUpdatesFilter</a>.</p><pclass="paragraph"><strong>WARNING</strong> This method WILL NOT launch any listening of updates. Use something like <ahref="../../tgbotapi.utils/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/index.html">startGettingOfUpdatesByLongPolling</a> or tools for work with webhooks</p><h4class="">See also</h4><divclass="table"><divclass="table-row"data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-behaviour-context/index.html"><span>Behaviour</span><wbr><span><span>Context</span></span></a></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="../../tgbotapi.utils/dev.inmo.tgbotapi.extensions.utils.updates.retrieving/index.html"><span>start</span><wbr><span>Getting</span><wbr><span>Of</span><wbr><span>Updates</span><wbr><span>By</span><wbr><span>Long</span><wbr><span><span>Polling</span></span></a></div></span></div><div></div></div></div></div></div></div>