Bug fixes

This commit is contained in:
Adhiraj
2020-05-20 11:42:21 +05:30
parent ea5ca61e49
commit 42a3d12236
6 changed files with 46 additions and 19 deletions

View File

@@ -18,7 +18,7 @@ module.exports = {
return this.query(["action","presence","subscribe",jid])
},
/**
* Query the status of the person
* Query the status of the person (see groupMetadata() for groups)
* @param {string} [jid] the whatsapp ID of the person
* @return {Promise<[object, object]>}
*/
@@ -131,6 +131,14 @@ module.exports = {
return loadMessage()
},
/**
* Get the metadata of the group
* @param {string} jid the ID of the group
* @return {Promise<[object, object]>}
*/
groupMetadata: function (jid) {
return this.query (["query", "GroupMetadata", jid])
},
/**
* Create a group
* @param {string} title like, the title of the group