muety / telegram-expense-bot

A bot that helps you manage and track your daily expenses.
59 stars 16 forks source link

Include rate limiting #18

Closed muety closed 3 years ago

muety commented 3 years ago

Limit to 100 commands per user per 24 hours. However, we can NOT use IP-based rate limiting middleware like https://github.com/nfriedly/express-rate-limit, as all requests will originate from Telegram servers or in the case of polling mode there won't be any incoming requests at all. Instead, a simple counting-based per-user rate limiting needs to be implemented on "application level".