https://github.com/grammyjs/ratelimiter
Limit the amount of handled messages.
https://github.com/grammyjs/ratelimiter
bot grammy spamming-requests telegraf telegraf-plugin
Last synced: 3 months ago
JSON representation
Limit the amount of handled messages.
- Host: GitHub
- URL: https://github.com/grammyjs/ratelimiter
- Owner: grammyjs
- License: mit
- Created: 2021-05-14T18:01:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-07-05T08:36:54.000Z (3 months ago)
- Last Synced: 2025-07-05T09:35:02.438Z (3 months ago)
- Topics: bot, grammy, spamming-requests, telegraf, telegraf-plugin
- Language: TypeScript
- Homepage: https://grammy.dev/plugins/ratelimiter
- Size: 555 KB
- Stars: 26
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/Amir-Zouerami/ratelimiter/actions/workflows/test.yml)
# 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.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.**](https://grammy.dev/plugins/ratelimiter)## License
Distributed under the MIT License. See `LICENSE` for more information.