mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Bug fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user