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 API Error 429 #156

Merged
merged 4 commits into from
Jul 18, 2023
Merged

Telegram API Error 429 #156

merged 4 commits into from
Jul 18, 2023

Conversation

Knispel2
Copy link
Collaborator

The Telegram API documentation regarding restrictions on sending messages to groups says the following:

Also note that your bot will not be able to send more than 20 messages per minute to the same group

A message with two attached images is considered by Telegram API as two messages, so no more than 14 messages should be sent per minute with a delay of 8 seconds, so I don't understand what causes error 429.

I suggest to try increasing the delay to 10 seconds -- if that doesn't help, I'll look for another reason. With such a delay, even if Telegram API considers one message as 3 (text + two pictures), no more than 20 messages will be sent per minute.

@Knispel2 Knispel2 added bug Something isn't working anomaly detection labels Jul 18, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jul 18, 2023

Codecov Report

Patch coverage: 60.00% and project coverage change: +0.11 🎉

Comparison is base (55fb455) 69.54% compared to head (e3cda2e) 69.65%.

❗ Current head e3cda2e differs from pull request most recent head 756b120. Consider uploading reports for the commit 756b120 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #156      +/-   ##
==========================================
+ Coverage   69.54%   69.65%   +0.11%     
==========================================
  Files          17       17              
  Lines         614      613       -1     
==========================================
  Hits          427      427              
+ Misses        187      186       -1     
Impacted Files Coverage Δ
...ilters/filter_anomaly_notification/filter_utils.py 64.77% <0.00%> (-0.07%) ⬇️
fink_filters/__init__.py 100.00% <100.00%> (ø)
fink_filters/filter_anomaly_notification/filter.py 94.87% <100.00%> (+0.27%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@JulienPeloton JulienPeloton merged commit c9b47f4 into master Jul 18, 2023
4 checks passed
@Knispel2 Knispel2 deleted the tgbug branch October 6, 2023 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anomaly detection bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants