TokenBucketLimiterImpl

Default implementation of query limitation via Token bucket algorithm.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun isLimited(limits: RateLimits, telegramId: Long, actionId: String?): Boolean

The function which will be called to check if the request limit is exceeded.

Link copied to clipboard