to limit the sending of 30 messages per second and trigger 429. Does anyone know why?
https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this
Limit is 1 message per second per user
I guess it's not like that
It is. Except you can have also short bursts over the limit, but if you keep doing it, you will get 429
What rate should I send messages at?
Maximum 1 message per second per user Up to 30 users at once As specified here: https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this
This is incorrect, I sent it as requested and it still comes up 429
30 users or 30 messages in 1S?
I'm pretty sure you are doing something wrong then. Or you are still limited since previous testing
I test it by first adjusting it to send 2 messages per second.
Check https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this We may allow short bursts that go over this limit, but eventually you'll begin receiving 429 errors.
There was no problem sending a small number of them. After I sent about 200 users, I got a 429 error.
200 users means 200 messages right?
Do 30 users, then wait at least 1 second and do next 30 until you are done
Is it okay if I send 15 messages per second?
To 1 user of 15 users?
Yes, anything below 30 users is fine
thanks i try it
What if send 316 messages?
And that's ok?
I have video record
My bot has 20,000 users and I need to send a message to each of them
In same time? That huge
Have you tried Local bot api ?
What's ur bot Username ??
Why not to use channel for that
I send 5 messages per second I sent 4000 messages and received 429 errors Is there a limit to the maximum number of messages per hour?
yes i use local bot api
@CSFatherBot
My Bot provides users with the ability to send broadcasts, so I need to send them as successfully as possible.
You mean your users use bot to broadcast messages to other users?
@CSFatherBot like @livegrambot
Test on your account
Yep, there are limits, telegram recommends to spread messages across a day or so
So, I send about 3000 messages and need to wait for a while and keep sending.
You need to wait immediately after receiving 429
There are specified time to wait
At over 3,000 subscribers per hour, it would take me 24 hours to finish sending if I had 90,000 subscribers.
So if you have 90k users, you could send a message to all of them in less than 1h
It's not working! Sending at a rate of 5 messages per second, sending less than 4000 subscribers would require me to take a 30 minute break.
Just implement this: https://discord.cloud/i/ddpo67ct5
What do you mean?
is that domain belong to you.
Обсуждают сегодня