-
Notifications
You must be signed in to change notification settings - Fork 128
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
get_chats() does not work as expected. #502
Comments
Hi, I suspect that you’ll need to use getChatHistory (reference) to properly load all messages. |
I see that the current limit for Do you think that overwrite the limit could help? |
From what I understand from the documentation, I think you still need to use |
The |
Hello, I noticed this behavior more that once.
I have a group that sends ~1000 messages per day, where in each message there is an image, so it takes a while to synchronize.
The original code was:
And with this code, when I launch a bot (after e.g. 2 days that I wasn't use it), it fails to synchronize the messages in a short time interval and then it behaves like that messages are received in real time.
I added also a
time.sleep(30)
beforedef new_message_handler(update)
but it does not improve.How to be sure that
get_chats()
works as expected and fetches everything before start to work? Basicallyresult_get_chats.wait()
should do the job but it doesn't.To reproduce, I think you need to setup a bot, make a login, then shutdown and fill a group with thousand of messages/photos and then start again the bot.
The text was updated successfully, but these errors were encountered: