alik0211 / mtproto-core

Telegram API JS (MTProto) client library for Node.js and browser
https://mtproto-core.js.org
GNU General Public License v3.0
625 stars 111 forks source link

Not getting updates about new messages #293

Open vit-samchuk opened 8 months ago

vit-samchuk commented 8 months ago

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 commented 5 months ago

We have the same problem.

vit-samchuk commented 5 months ago

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 commented 5 months ago

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 commented 3 months ago

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 commented 3 months ago

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

GuysmoB commented 2 months ago

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 ?