There is a claim that botsupport can do that. Anyway there are really large bots like werewolf bot or rose who have millions of users and operate on the regular limits as all other bots.
thanks for response, anyways the problem of my bot is that it needs to send message to a particular group of people at once (more than 30) bc it's a game and I think it can fail and give 429 errors all time, what do you think? Should I try?
why does it need to send 30 messages 💀 try to implement a better way for your game
Werewolf is also a game. The 30 messages limit is for sending "new" messages without prior interaction of a user with the bot. Your bot should be able to exceed this number if you e.g. reply on user messages.
Does your bot work in groups too? Just a heads up, the bot can't send more than 20 messages per minute in the same group.
what if a user sends 20 command requests? API documentation is unclear
I think you have to schedule the messages
I think it will still return error 429 if exceed 20 messages in less than a minute.
its a live competition and the users write their answers and the bot should respond if its right answer
did you increase the max concurrent messages or whatever it’s called when you registered the webhook?
So does it mean if user has already sent a message to the bot, the bot can dm as much as it needs?
I don't want to set limits bc users have to receive answers as much as it's possible
that’s not a limit you can increase it to the max
so does increasing this parameter allow me to send unlimited messages to users?
https://core.telegram.org/bots/api#setwebhook max_connections
That is something completely different than what the user asked.
wouldn’t that increase the throughput of their bot though?
API rate limits are there to prevent a bot from spamming users and groups. The max_connections value is not related to rate limits.
No. What I was trying to say is that in certain cases your bot can reply to a single message without it counting towards the rate limit. Say I'm in a group and I send your bot /start. When you reply to this /start message, it should not count towards the rate limit.
So even a very popular bot would not hit this ceiling if it only replies to a message one time? Wow
Well, my message was a simplification. It doesn't seem to be as easy as I wrote it.
if your bot is very popular you can ask and they will increase the limits for you (if they think there is the need)
I know. That wasn't really the thing
1) I have never seen a real case where this happened. 2) the use case for you to get your limits increased must be really special tho... Even bots such as Rose operate on the default limits
if it's true that my bot can answer 100 dms in chat which user started, it solves my problem
Maybe you can do it with buttons and callbackqueries?
yeah that's really great idea! I have to try it I think it may not fit the game
Обсуждают сегодня