Skip to content

grammyjs/ratelimiter

Repository files navigation

Test and Build

Rate Limit Users (ratelimiter)

ratelimiter is an advanced and flexible middleware for the grammY framework, designed to protect Telegram bots from spam and resource abuse.

grammY rate limiter cover

At its core, ratelimiter acts as a configurable gatekeeper for incoming updates. It allows developers to define precise rules for how many messages a user or chat (or any arbitrary entity) can send in a given period, ensuring the bot remains responsive and server resources are protected from overload.

The plugin inspects each incoming message, identifies its source, and decides if it should be processed or dismissed based on the rules you set.

For more information and how-to instructions, please visit the official grammY ratelimiter documentation.

License

Distributed under the MIT License. See LICENSE for more information.

Packages

No packages published

Contributors 7