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

Types

CommonLimiter
Link copied to clipboard
common
class CommonLimiter(lockCount: Int, regenTime: Long) : RequestLimiter
EmptyLimiter
Link copied to clipboard
common
typealias EmptyLimiter = ExceptionsOnlyLimiter
ExceptionsOnlyLimiter
Link copied to clipboard

This limiter will limit requests only after getting a RetryAfterError or ClientRequestException with HttpStatusCode.TooManyRequests 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

common
class ExceptionsOnlyLimiter(defaultTooManyRequestsDelay: Long) : RequestLimiter
PowLimiter
Link copied to clipboard
common
data class PowLimiter(minAwaitTime: Long, maxAwaitTime: Long, powValue: Double, powK: Double) : RequestLimiter
RequestLimiter
Link copied to clipboard
common
interface RequestLimiter