OptionalkeyCustom key extractor function. Defaults to extracting the user ID or chat ID.
OptionallimitMaximum allowed requests per key within the time window.
OptionalonOptional callback invoked when an update exceeds the rate limit.
OptionalwindowTime window in milliseconds.
Options for configuring the rateLimit middleware.