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

user-bot rate limit #2845

Closed
gorefieend opened this issue Apr 10, 2024 · 6 comments
Closed

user-bot rate limit #2845

gorefieend opened this issue Apr 10, 2024 · 6 comments

Comments

@gorefieend
Copy link

hello,

how often can i call function get_Messages() go manually poll for a new messages as user in supergroup?

every 50ms? every 100ms? 500ms?

@levlam
Copy link
Contributor

levlam commented Apr 10, 2024

You must not call getMessages to get new messages in a supergroup. All new messages in joined or opened chats are received from TDLib in updates.

@ne0c0de
Copy link

ne0c0de commented Apr 10, 2024

sometimes Telegram lacks on sending new messages on heavy groups (which has 10k+ users) so calling getMessages is a good way to get news messages but it has limits to call for every X ms. I guess @gorefieend is asking what's the best interval to call this method in order to avoid ban.

@levlam
Copy link
Contributor

levlam commented Apr 10, 2024

There is no such interval. Apps are not supposed to call getMessages with identifiers of non-existent messages.

@gorefieend
Copy link
Author

@ne0c0de exactly!!

what is the max possible interval without getting limited? in ms

@Tidalikk
Copy link

@gorefieend Have you found any documentation about the api limit?

@gorefieend
Copy link
Author

nope. it is not public

@levlam levlam closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants