docs
/
dev.inmo.tgbotapi.bot.settings.limiters
/
CommonLimiter
common
Common
Limiter
class
CommonLimiter
(lockCount:
Int
, regenTime:
MilliSeconds
, scope:
CoroutineScope
) :
RequestLimiter
Content copied to clipboard
Functions
Functions
limit
Link copied to clipboard
common
open suspend override fun <
T
>
limit
(block: suspend () ->
T
):
T
Content copied to clipboard
Use limit for working of block (like delay between or after, for example)