Package dev.inmo.tgbotapi.bot.settings.limiters

Types

CommonLimiter
Link copied to clipboard
common
class CommonLimiter(lockCount: Int, regenTime: MilliSeconds, scope: CoroutineScope) : RequestLimiter
ExceptionsOnlyLimiter
Link copied to clipboard
common
class ExceptionsOnlyLimiter(defaultTooManyRequestsDelay: MilliSeconds) : RequestLimiter
This limiter will limit requests only after getting a RetryAfterError or ClientRequestException with HttpStatusCode.TooManyRequests status code.
PowLimiter
Link copied to clipboard
common
data class PowLimiter(minAwaitTime: MilliSeconds, maxAwaitTime: MilliSeconds, powValue: Double, powK: Double, scope: CoroutineScope) : RequestLimiter
RequestLimiter
Link copied to clipboard
common
interface RequestLimiter