feat: mark chat as unread (#475)

Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This commit is contained in:
Raphael R 2020-12-28 21:03:01 -03:00 • committed by Pedro S. Lopez
commit 3e32fe27ea

View file

@ -161,6 +161,13 @@ class Chat extends Base {
return this.client.unmuteChat(this.id._serialized);
}
/**
* Mark this chat as unread
*/
async markUnread(){
return this.client.markChatUnread(this.id._serialized);
}
/**
* Loads chat messages, sorted from earliest to latest.
* @param {Object} searchOptions Options for searching messages. Right now only limit is supported.