An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

[![Test and Build](https://github.com/Amir-Zouerami/ratelimiter/actions/workflows/test.yml/badge.svg)](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.



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.**](https://grammy.dev/plugins/ratelimiter)

## License

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