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

Not getting updates about new messages #293

Open
vit-samchuk opened this issue Oct 29, 2023 · 6 comments
Open

Not getting updates about new messages #293

vit-samchuk opened this issue Oct 29, 2023 · 6 comments

Comments

@vit-samchuk
Copy link

Successfully configured listener for all updates. But not getting updates at all from some channels. And successfully receives all updates - messages, edits, reactions and other from others.

Have worked with this library several times, never ones noticed something similar earlier. Any suggestions?

@psqq
Copy link

psqq commented Feb 2, 2024

We have the same problem.

@vit-samchuk
Copy link
Author

We have the same problem.

Maybe this will help you - in my app I made a cron every 30 seconds to execute call method updates.getState.
And my listenrs succesfully getting all updates)

@psqq
Copy link

psqq commented Feb 6, 2024

Oh, I remembered. Maybe this will help you. Updates also stop coming after receiving the updatesTooLong event, but we process this event. Despite this, updates still stop coming.

@awdr74100
Copy link

Is there any solution to this problem at the moment? gramjs can't listen to any messages after a while, it seems the same problem happens with this library, so is this an official telegram api problem?

@vit-samchuk
Copy link
Author

I still use solution from my prew answer with updates.getState

@GuysmoB
Copy link

GuysmoB commented May 3, 2024

We have the same problem.

Maybe this will help you - in my app I made a cron every 30 seconds to execute call method updates.getState. And my listenrs succesfully getting all updates)

With this code const state = await this.mtproto.updates.getState(); console.log('state:', state); i have a this.mtproto.updates.getState is not a function error.
Is this 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

4 participants