<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword">suspend </span><spanclass="token keyword">fun </span><ahref="telegram-bot-with-behaviour.html"><spanclass="token function">telegramBotWithBehaviour</span></a><spanclass="token punctuation">(</span>token<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><spanclass="token punctuation">, </span>flowsUpdatesFilter<spanclass="token operator">: </span><ahref="../dev.inmo.tgbotapi.updateshandlers/-flows-updates-filter/index.html">FlowsUpdatesFilter</a><spanclass="token operator"> = </span>FlowsUpdatesFilter()<spanclass="token punctuation">, </span>scope<spanclass="token operator">: </span><spandata-unresolved-link="kotlinx.coroutines/CoroutineScope///PointingToDeclaration/">CoroutineScope</span><spanclass="token operator">?</span><spanclass="token operator"> = </span>null<spanclass="token punctuation">, </span>apiUrl<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><spanclass="token operator"> = </span>telegramBotAPIDefaultUrl<spanclass="token punctuation">, </span>builder<spanclass="token operator">: </span><spanclass="token keyword"></span><ahref="../dev.inmo.tgbotapi.bot.Ktor/-ktor-requests-executor-builder/index.html">KtorRequestsExecutorBuilder</a><spanclass="token punctuation">.</span><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator"> -></span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><spanclass="token operator"> = </span>{}<spanclass="token punctuation">, </span>defaultExceptionsHandler<spanclass="token operator">: </span><spandata-unresolved-link="dev.inmo.micro_utils.coroutines/ExceptionHandler///PointingToDeclaration/">ExceptionHandler</span><spanclass="token operator"><</span><spanclass="token keyword"></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>block<spanclass="token operator">: </span><ahref="index.html#1125173050%2FClasslikes%2F-1982836883">BehaviourContextReceiver</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><spanclass="token operator">></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Create bot using <ahref="../dev.inmo.tgbotapi.bot.Ktor/telegram-bot.html">telegramBot</a> and start listening for updates using <ahref="build-behaviour.html">buildBehaviour</a>. Use this method in case you wish to make some additional actions with <ahref="telegram-bot-with-behaviour.html">flowsUpdatesFilter</a>.</p><pclass="paragraph"><strong>WARNING</strong> 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 <ahref="build-behaviour.html">buildBehaviour</a></p><h2class="">See also</h2><divdata-togglable="See also"><divclass="table"data-togglable="See also"><divclass="table-row"data-filterable-cur