<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":tgbotapi.utils:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword">fun </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.bot/-telegram-bot/index.html">TelegramBot</a><spanclass="token punctuation">.</span><ahref="long-polling.html"><spanclass="token function">longPolling</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">updatesFilter<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.updateshandlers/-updates-filter/index.html">UpdatesFilter</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">timeoutSeconds<spanclass="token operator">: </span><ahref="../../tgbotapi.core/dev.inmo.tgbotapi.types/-seconds/index.html">Seconds</a><spanclass="token operator"> = </span><spanclass="token constant">30</span><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>CoroutineScope(Dispatchers.Default)<spanclass="token punctuation">, </span></span><spanclass="parameter ">autoDisableWebhooks<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><spanclass="token operator"> = </span><spanclass="token boolean">true</span><spanclass="token punctuation">, </span></span><spanclass="parameter ">autoSkipTimeoutExceptions<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><spanclass="token operator"> = </span><spanclass="token boolean">true</span><spanclass="token punctuation">, </span></span><spanclass="parameter ">mediaGroupsDebounceTimeMillis<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a><spanclass="token operator">?</span><spanclass="token operator"> = </span><spanclass="token constant">1000</span><spanclass="token punctuation">, </span></span><spanclass="parameter ">exceptionsHandler<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</span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><spandata-unresolved-link="kotlinx.coroutines/Job///PointingToDeclaration/">Job</span></div><pclass="paragraph">Will <ahref="start-getting-of-updates-by-long-polling.html">startGettingOfUpdatesByLongPolling</a> using incoming <ahref="long-polling.html">updatesFilter</a>. It is assumed that you ALREADY CONFIGURE all updates receivers, because this method will trigger getting of updates and.</p><h4class="">Parameters</h4><divclass="table"><divclass="table-row"data-filterable-current=":tgbotapi.utils:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.utils:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span>media</span><wbr><span>Groups</span><wbr><span>Debounce</span><wbr><span>Time</span><wbr><span><span>Millis</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">Will be used for calling of <ahref="update-handler-with-media-groups-adaptation.html">updateHandlerWithMediaGroupsAdaptation</a>. Pass null in case you wish to enable classic way of updates handling, but in that mode some media group messages can be retrieved in different updates</p></div></div></div></div></div><hr><divclass="symbol monospace"><