roataway / telegram-bot

A Telegram bot for reporting ETAs for public transport in Chișinău, Moldova
http://t.me/roataway_bot
GNU Affero General Public License v3.0
13 stars 3 forks source link

Rate limiting #16

Open roata opened 5 years ago

roata commented 5 years ago

Logs indicate that some users send a large number of requests per unit of time (e.g., one request every 4s for half an hour is anything but "reasonable").

The bot should keep track of the number of requests sent from each user and prevent them from doing so more often than realistically necessary.