<pclass="paragraph">Create bot using <ahref="../dev.inmo.tgbotapi.bot.Ktor/telegram-bot.html">telegramBot</a> and start listening for updates using <spandata-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>. Use this method in case you wish to make some additional actions with <ahref="telegram-bot-with-behaviour.html">flowsUpdatesFilter</a>.</p><pclass="paragraph">WARNING This method WILL NOT launch any listening of updates. Use something like <ahref="../dev.inmo.tgbotapi.extensions.utils.updates.retrieving/start-getting-of-updates-by-long-polling.html">startGettingOfUpdatesByLongPolling</a> or tools for work with webhooks</p><h4class="">Return</h4><pclass="paragraph">Created bot which has been used to create <ahref="-behaviour-context/index.html">BehaviourContext</a> via <spandata-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></p><h2class="">See also</h2><divdata-togglable="See also"><divclass="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="See also"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divdata-togglable="See also"><divclass="table"data-togglable="See also"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes RowTitle"><divclass=""><spanclass="inline-flex"><ahref="-behaviour-context/index.html">dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext</a></span><spanclass="inline-flex"><divdata-togglable="See also"></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes RowTitle"><divclass=""><spanclass="inline-flex"><spandata-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></span><spanclass="inline-flex"><divdata-togglable="See also"></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes RowTitle"><divclass=""><spanclass="inline-flex"><ahref="../dev.inmo.tgbotapi.extensions.utils.updates.retrieving/start-getting-of-updates-by-long-polling.html">startGettingOfUpdatesByLongPolling</a></span><spanclass="inline-flex"><divdata-togglable="See also"></div></span></div><div></div></div></div></div></div></div></div></div></div>
<pclass="paragraph">Create bot using <ahref="../dev.inmo.tgbotapi.bot.Ktor/telegram-bot.html">telegramBot</a> and start listening for updates using <spandata-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>. Use this method in case you wish to make some additional actions with flowsUpdatesFilter.</p><pclass="paragraph">WARNING This method WILL NOT launch any listening of updates. Use something like <ahref="../dev.inmo.tgbotapi.extensions.utils.updates.retrieving/start-getting-of-updates-by-long-polling.html">startGettingOfUpdatesByLongPolling</a> or tools for work with webhooks</p><h4class="">Return</h4><pclass="paragraph">Pair of <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a> and <spandata-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span>. This <spandata-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span> can be used to stop listening updates in your <ahref="telegram-bot-with-behaviour.html">block</a> you passed here</p><h2class="">See also</h2><divdata-togglable="See also"><divclass="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="See also"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divdata-togglable="See also"><divclass="table"data-togglable="See also"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes RowTitle"><divclass=""><spanclass="inline-flex"><ahref="-behaviour-context/index.html">dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext</a></span><spanclass="inline-flex"><divdata-togglable="See also"></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes RowTitle"><divclass=""><spanclass="inline-flex"><spandata-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></span><spanclass="inline-flex"><divdata-togglable="See also"></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes RowTitle"><divclass=""><spanclass="inline-flex"><ahref="../dev.inmo.tgbotapi.extensions.utils.updates.retrieving/start-getting-of-updates-by-long-polling.html">startGettingOfUpdatesByLongPolling</a></span><spanclass="inline-flex"><divdata-togglable="See also"></div></span></div><div></div></div></div></div></div></div></div></div></div>