feat: change status message
This commit is contained in:
parent
f2b286a319
commit
edc2c7022d
3 changed files with 15 additions and 0 deletions
|
|
@ -331,6 +331,16 @@ class Client extends EventEmitter {
|
|||
return chatId._serialized;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the current user's status message
|
||||
* @param {string} status New status message
|
||||
*/
|
||||
async setStatus(status) {
|
||||
await this.pupPage.evaluate(async status => {
|
||||
return await window.Store.Wap.sendSetStatus(status);
|
||||
}, status);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Client;
|
||||
|
|
|
|||
Loading…
Reference in a new issue