Skip to main content
Module

x/grammy_ratelimiter/typesAndDefaults.ts>OptionsInterface

Protect grammY bots by limiting users
Latest
interface OptionsInterface
import { type OptionsInterface } from "https://deno.land/x/grammy_ratelimiter@v1.2.0/typesAndDefaults.ts";

Type Parameters

C extends Context
RT extends RedisType

Properties

optional
timeFrame: number
optional
limit: number
optional
storageClient: "MEMORY_STORE" | RT
optional
onLimitExceeded: (ctx: C, next: NextFunction) => void
optional
alwaysReply: boolean
optional
keyGenerator: (ctx: C) => string | undefined