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
parent 5c6195738f
commit 3e32fe27ea
3 changed files with 23 additions and 0 deletions

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.