JungDev / django-telegrambot

Simple app for Telegram bot in Django
BSD 3-Clause "New" or "Revised" License
237 stars 88 forks source link

Flood Error #4

Closed thisfieldmustbefilled closed 7 years ago

thisfieldmustbefilled commented 7 years ago

Hi. Thanks for writing this module. Everything seems to work fine for me from the cold start, so configured properly. But even on first restart of the django debug server I'm expecting "telegram.error.RetryAfter: Flood control exceeded. Retry in 1 seconds". I thought it was a problem when telegram routes webhook continuously untill 200 code is received. But even when I received all the messages and only then started again, I am expecting same error. The proper reference from the telegram API seems to be this . It takes about an hour till I can run bot again. I am wondering how can I flood the telegram servers this way.

Also, UserWarning: telegram.dispatcher.addErrorHandler is being deprecated, please use telegram.dispatcher.add_error_handler from now.