<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace">class <ahref="index.html">ExceptionsOnlyLimiter</a>(defaultTooManyRequestsDelay: <ahref="../../dev.inmo.tgbotapi.types/index.html#%5Bdev.inmo.tgbotapi.types%2FMilliSeconds%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F983538108">MilliSeconds</a>) : <ahref="../-request-limiter/index.html">RequestLimiter</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">This limiter will limit requests only after getting a <ahref="../../dev.inmo.tgbotapi.types/-retry-after-error/index.html">RetryAfterError</a> or <spandata-unresolved-link="io.ktor.client.features/ClientRequestException///PointingToDeclaration/">ClientRequestException</span> with <spandata-unresolved-link="io.ktor.http/HttpStatusCode.Companion/TooManyRequests/#/PointingToDeclaration/">HttpStatusCode.TooManyRequests</span> status code. Important thing is that in case if some of block has been blocked, all the others will wait until it will be possible to be called</p></div></div>
<divclass="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="Parameters"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex">defaultTooManyRequestsDelay</span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">This parameter will be used in case of getting <spandata-unresolved-link="io.ktor.client.features/ClientRequestException///PointingToDeclaration/">ClientRequestException</span> with <spandata-unresolved-link="io.ktor.http/HttpStatusCode.Companion/TooManyRequests/#/PointingToDeclaration/">HttpStatusCode.TooManyRequests</span> as a parameter for delay like it would be <ahref="../../dev.inmo.tgbotapi.bot.exceptions/-too-much-requests-exception/index.html">TooMuchRequestsException</a>. The reason of it is that in <spandata-unresolved-link="io.ktor.client.features/ClientRequestException///PointingToDeclaration/">ClientRequestException</span> there is no information about required delay between requests</p></div></div></div></div></div></div></div></div></div>
<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace">fun <ahref="-exceptions-only-limiter.html">ExceptionsOnlyLimiter</a>(defaultTooManyRequestsDelay: <ahref="../../dev.inmo.tgbotapi.types/index.html#%5Bdev.inmo.tgbotapi.types%2FMilliSeconds%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F983538108">MilliSeconds</a> = 1000L)<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><divclass="brief ">This parameter will be used in case of getting <spandata-unresolved-link="io.ktor.client.features/ClientRequestException///PointingToDeclaration/">ClientRequestException</span> with <spandata-unresolved-link="io.ktor.http/HttpStatusCode.Companion/TooManyRequests/#/PointingToDeclaration/">HttpStatusCode.TooManyRequests</span> as a parameter for delay like it would be <ahref="../../dev.inmo.tgbotapi.bot.exceptions/-too-much-requests-exception/index.html">TooMuchRequestsException</a>.</div></div></div>
<adata-name="%5Bdev.inmo.tgbotapi.bot.settings.limiters%2FExceptionsOnlyLimiter%2Flimit%2F%23kotlin.coroutines.SuspendFunction0%5BTypeParam%28bounds%3D%5Bkotlin.Any%3F%5D%29%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F983538108"anchor-label="limit"id="%5Bdev.inmo.tgbotapi.bot.settings.limiters%2FExceptionsOnlyLimiter%2Flimit%2F%23kotlin.coroutines.SuspendFunction0%5BTypeParam%28bounds%3D%5Bkotlin.Any%3F%5D%29%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F983538108"data-filterable-set=":docs:dokkaHtml/commonMain"></a><divclass="brief "><adata-name="%5Bdev.inmo.tgbotapi.bot.settings.limiters%2FExceptionsOnlyLimiter%2Flimit%2F%23kotlin.coroutines.SuspendFunction0%5BTypeParam%28bounds%3D%5Bkotlin.Any%3F%5D%29%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F983538108"anchor-label="limit"id="%5Bdev.inmo.tgbotapi.bot.settings.limiters%2FExceptionsOnlyLimiter%2Flimit%2F%23kotlin.coroutines.SuspendFunction0%5BTypeParam%28bounds%3D%5Bkotlin.Any%3F%5D%29%5D%2FPointingToDeclaration%2F%5D%2FFunctions%2F983538108"data-filterable-set=":docs:dokkaHtml/commonMain"></a>Use limit for working of block (like delay between or after, for example)</div></div>