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

duplicate update received completely randomly #101

Open
asdfzxcvbn opened this issue Nov 28, 2024 · 2 comments
Open

duplicate update received completely randomly #101

asdfzxcvbn opened this issue Nov 28, 2024 · 2 comments

Comments

@asdfzxcvbn
Copy link

asdfzxcvbn commented Nov 28, 2024

i have this handler:

client.Dispatcher.AddHandler(handlers.NewMessage(filters.Message.Media, receivedFile))

sometimes, receivedFile will be called with the exact same message completely randomly, even though no error occurred. this can happen several times within a few minutes, and i believe it's even happened with a channel post that's 2 months old. i can confirm that it is the exact same message (same message and chat id) when receivedFile is called twice.

#98 was also opened regarding this issue but was closed by the author in error

@celestix
Copy link
Owner

Hi @asdfzxcvbn, IIRC telegram has changed their backend functionality of media management recently causing update for a media to be sent twice by telegram once before processing and once after processing, could you check if that's the issue in this case?

@asdfzxcvbn
Copy link
Author

Hi @asdfzxcvbn, IIRC telegram has changed their backend functionality of media management recently causing update for a media to be sent twice by telegram once before processing and once after processing, could you check if that's the issue in this case?

i'm not downloading media like photos/videos, but files, those arent "processed" right?

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

2 participants