Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
trakhimenok opened this issue Jul 18, 2018 · 0 comments
Open

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

trakhimenok opened this issue Jul 18, 2018 · 0 comments

Comments

@trakhimenok
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant