Hitting rate limit on GetUpdates. Seeking for way forward. #1422
-
I keep getting such errors:
I know that the best option to avoid this would be to set up the webhook. However, I was wondering if there is any other way to avoid hitting rate limits and still use long polling? Thanks in advance for the input and feedback. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You should do nothing with this error.
aiogram/aiogram/dispatcher/dispatcher.py Lines 213 to 239 in a37deff |
Beta Was this translation helpful? Give feedback.
You should do nothing with this error.
getUpdates
method has no actual rate-limit. This error means that the Telegram Bot API Server is restarting and request should be retried in 5 seconds and this operation is already handled by aiogram itself in the same way as any other network issues - retrying request and notifined in the logs to helps to understand why your bot is not handling new events until server will be still alive.aiogram/aiogram/dispatcher/dispatcher.py
Lines 213 to 239 in a37deff