RateLimitMechanism

fun interface RateLimitMechanism

Interface to implement features for request limits.

Inheritors

Functions

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

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