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
633 stars 118 forks source link

Incoming "updates" messages stop after first outbound API call #162

Closed Shmublon closed 3 years ago

Shmublon commented 3 years ago

It is the same issue, like in this thread https://github.com/zerobias/telegram-mtproto/issues/53

I googled a lot but nothing helping. Exactly after first outbound API call, for example, 'messages.setTyping' or 'messages.sendMessage', it stops to send any updates.

_mtproto.updates.on('updateShortMessage', console.log); _mtproto.updates.on('updatesTooLong', console.log); _mtproto.updates.on('updateShortChatMessage', console.log); _mtproto.updates.on('updateShort', console.log); _mtproto.updates.on('updatesCombined', console.log); _mtproto.updates.on('updates', console.log); _mtproto.updates.on('updateShortSentMessage', console.log);

alik0211 commented 3 years ago

I couldn't reproduce the problem. Update the library to version 6 and try again