andrey-yantsen / boterator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] pollslist command is not working correctly

mhverbakel opened this issue · comments

For big numbers (like 16 messages), the /pollslist yields only a partial list of the open polls (11 in this specific case).

Turns out that for 23 or 24 open messages, it also yields 11 results.

Unfortunately I don't have a proper solution for this right now - the problem is in telegram's bots limitations:

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

I believe you can go over the 20 messages limit by adding user interaction, so maybe a /pollslist next command or something like that to continue the list? Or a rate limiter that takes 5 minutes to send the full poll list?

A good quick-win would be to ensure to show the oldest messages first. That way, those can be closed as soon as possible.

I believe you can go over the 20 messages limit by adding user interaction
Unfortunately no. I've asked BotSupport about this limit and they've confirmed to me that there is nothing you can do to avoid this limits. So the bot can send, only 20 messages in one minute :(
Looks like we should use some kind of queue for this, not sure yet.