1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-06-25 12:45:41 +00:00
This commit is contained in:
InsanusMokrassar
2026-03-08 09:19:00 +00:00
parent 9482208aeb
commit 2e9c45ddb0
9397 changed files with 62245 additions and 67195 deletions

View File

@@ -120,17 +120,17 @@
</div>
<div data-togglable="FUNCTION">
<h2 class="">Functions</h2>
<div class="table"><a data-name="-303724117%2FFunctions%2F789214110" anchor-label="invoke" id="-303724117%2FFunctions%2F789214110" data-filterable-set=":tgbotapi.core:dokkaHtmlPartial/commonMain"></a>
<div class="table"><a data-name="1202925259%2FFunctions%2F789214110" anchor-label="invoke" id="1202925259%2FFunctions%2F789214110" data-filterable-set=":tgbotapi.core:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":tgbotapi.core:dokkaHtmlPartial/commonMain" data-filterable-set=":tgbotapi.core:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="invoke.html"><span><span>invoke</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-303724117%2FFunctions%2F789214110"></span>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1202925259%2FFunctions%2F789214110"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.core:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="invoke.html"><span class="token function">invoke</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">exceptionDurationMultiplier<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html">Float</a><span class="token operator"> = </span><span class="token constant">2.0f</span><span class="token punctuation">, </span></span><span class="parameter ">initialExceptionDuration<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.time/-duration/index.html">Duration</a><span class="token operator"> = </span>125.milliseconds</span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/index.html">TelegramBotMiddleware</a></div><div class="brief "><p class="paragraph">Creates <a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/index.html">TelegramBotMiddleware</a> and configures it with next parameters:</p></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.core:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="invoke.html"><span class="token function">invoke</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">exceptionDurationMultiplier<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html">Float</a><span class="token operator"> = </span><span class="token constant">2.0f</span><span class="token punctuation">, </span></span><span class="parameter ">initialExceptionDuration<span class="token operator">: </span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token operator"> = </span>125.milliseconds</span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/index.html">TelegramBotMiddleware</a></div><div class="brief "><p class="paragraph">Creates <a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/index.html">TelegramBotMiddleware</a> and configures it with next parameters:</p></div></div></div>
</div>
</div>
</div>

View File

@@ -90,12 +90,12 @@
</div>
</div>
<div id="main">
<div class="main-content" data-page-type="member" id="content" pageids="tgbotapi.core::dev.inmo.tgbotapi.bot.ktor.middlewares.builtins/ExceptionsThrottlerTelegramBotMiddleware/invoke/#kotlin.Float#kotlin.time.Duration/PointingToDeclaration//789214110">
<div class="main-content" data-page-type="member" id="content" pageids="tgbotapi.core::dev.inmo.tgbotapi.bot.ktor.middlewares.builtins/ExceptionsThrottlerTelegramBotMiddleware/invoke/#kotlin.Float#[Error type: Unresolved type for Duration]/PointingToDeclaration//789214110">
<div class="breadcrumbs"><a href="../../index.html">tgbotapi.core</a><span class="delimiter">/</span><a href="../index.html">dev.inmo.tgbotapi.bot.ktor.middlewares.builtins</a><span class="delimiter">/</span><a href="index.html">ExceptionsThrottlerTelegramBotMiddleware</a><span class="delimiter">/</span><span class="current">invoke</span></div>
<div class="cover ">
<h1 class="cover"><span><span>invoke</span></span></h1>
</div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.core:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="invoke.html"><span class="token function">invoke</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">exceptionDurationMultiplier<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html">Float</a><span class="token operator"> = </span><span class="token constant">2.0f</span><span class="token punctuation">, </span></span><span class="parameter ">initialExceptionDuration<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.time/-duration/index.html">Duration</a><span class="token operator"> = </span>125.milliseconds</span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/index.html">TelegramBotMiddleware</a></div><p class="paragraph">Creates <a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/index.html">TelegramBotMiddleware</a> and configures it with next parameters:</p><ul><li><p class="paragraph"><a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/on-request-exception.html">TelegramBotMiddleware.onRequestException</a> will throttle after exception if exception has happened before</p></li><li><p class="paragraph"><a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/on-request-return-result.html">TelegramBotMiddleware.onRequestReturnResult</a> will clear state of all exceptions happened with the <a href="../../dev.inmo.tgbotapi.requests.abstracts/-request/index.html">Request</a> if its handling has been completed successfully</p></li></ul></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.core:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="invoke.html"><span class="token function">invoke</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">exceptionDurationMultiplier<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html">Float</a><span class="token operator"> = </span><span class="token constant">2.0f</span><span class="token punctuation">, </span></span><span class="parameter ">initialExceptionDuration<span class="token operator">: </span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token operator"> = </span>125.milliseconds</span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/index.html">TelegramBotMiddleware</a></div><p class="paragraph">Creates <a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/index.html">TelegramBotMiddleware</a> and configures it with next parameters:</p><ul><li><p class="paragraph"><a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/on-request-exception.html">TelegramBotMiddleware.onRequestException</a> will throttle after exception if exception has happened before</p></li><li><p class="paragraph"><a href="../../dev.inmo.tgbotapi.bot.ktor.middlewares/-telegram-bot-middleware/on-request-return-result.html">TelegramBotMiddleware.onRequestReturnResult</a> will clear state of all exceptions happened with the <a href="../../dev.inmo.tgbotapi.requests.abstracts/-request/index.html">Request</a> if its handling has been completed successfully</p></li></ul></div></div>
</div>
<div class="footer">
<a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a>