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
630 stars 113 forks source link

How to see if a user has read the message #237

Open TheRyan1 opened 2 years ago

TheRyan1 commented 2 years ago

Describe the bug

When using messages.getDialogs, There is a property called unread_count.. That is always zero. How would you get the information on whether or not a user has read the message?

Code example

const dialogs = await this.call('messages.getDialogs',{ offset_peer: { _: "inputUserSelf", } }); return dialogs;

Expected behavior The unread_count to change if the user has read the message

Context: