-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
About telegram rate limit for sendMessage and editMessage #3034
Comments
Limits for message editing and sending are shared, but well-behaving bots that don't constantly send/edit messages without user interaction can hardly exceed them. |
Oh sorry, I was reading both repositories and I though I opened the issue at So are the limits grouped by chat and count only if don't have user interaction? My bot only opens the menu when the user use As I'm updating the message every 5 seconds, I will have 12 reqs / min. This menu has some buttons that trigger tasks and my BOT use About the bulk notifications, I was concerned because as I said, if 20 users hit the |
This is a bad behavior pattern, which creates a lot of unneeded traffic and is bad both for the bot and the user. Such behavior is supposed to be limited. Instead, you can add a button and refresh the state only after the user pressed it. Alternatively, you can use a mini app, which is updated only while opened. |
I know that letting it refreshing forever it's a bad behavior, but is it even for a short period? I was thinking in an auto refresh for a short period only. Example: User press |
This isn't that bad, but still can be significantly limited. |
Hi!
I wanted to know about rate limits for the requests
sendMessage
,editMessage
anddeleteMessage
.What I find when searching for rate limit is:
Global: 30 requests / second.
User: 20 requests / min.
Are the limits shared between these requests? I tested a simple BOT where:
sendMessage
sendMessage
• 20 reqs / min (User)
• 1 req / second (User)
• 30 reqs / second (Global).
With few users I came across
RetryAfter
error. So seems thateditMessage
uses the same limit.But I know some BOTs with 4k users/day and with a same menu that refreshes every X seconds and seems hey don't get rate limited.
The text was updated successfully, but these errors were encountered: