theyellow / pogorobot

telegram-bot for Pokemon Go community to inform and organize - https://github.com/theyellow/pogorobot/releases
https://theyellow.github.io/pogorobot/
Apache License 2.0
5 stars 2 forks source link

too many requests to telegram - queuing and timer for telegram requests necessary #44

Closed theyellow closed 5 years ago

theyellow commented 5 years ago

Telegram has some limits how many requests per user/chat and overall per second/minute are allowed. Telegram starts blocking bot if there are too high values, so it's necessary to create different queues per chat with timer for each when to send next message.