You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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) before def 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? Basically result_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:
From what I understand from the documentation, I think you still need to use getChatHistory to load messages in the chats individually. But I’m not very familiar with how it works, so I could be wrong about that.
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: