bots-fw icon indicating copy to clipboard operation
bots-fw copied to clipboard

Telegram: add support for avoiding hit limits (error=429)

Open trakhimenok opened this issue 5 years ago • 0 comments

If message failed to sent put it to a queue to send later? Probably should be controlled by a flag on a message.

https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this

When sending messages inside a particular chat, avoid sending more than one message per second. We may allow short bursts that go over this limit, but eventually you'll begin receiving 429 errors.

If you're sending bulk notifications to multiple users, the API will not allow more than 30 messages per second or so. Consider spreading out notifications over large intervals of 8—12 hours for best results.

trakhimenok avatar Jul 18 '18 14:07 trakhimenok