<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#1266067951%2FClasslikes%2F-1982836883">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"><span>default</span><wbr></wbr><span>Too</span><wbr></wbr><span>Many</span><wbr></wbr><span>Requests</span><wbr></wbr><span><span>Delay</span></span></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>