Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants