Update Base.ts

This commit is contained in:
Adhiraj
2020-07-12 14:03:17 +05:30
parent 4a06217dd0
commit e8ec50488e

View File

@@ -210,7 +210,6 @@ export default class WhatsAppWebBase extends WAConnection {
/** Get the metadata (works after you've left the group also) */
groupCreatorAndParticipants = async (jid: string) => {
const response = await this.queryExpecting200(['query', {type: 'group', jid: jid, epoch: '5'}, null], [WAMetric.group, WAFlag.ignore])
if (!response[2] || !response[2][1]) throw new Error ('Data missing in ' + JSON.stringify(response))
const json = response[2]
return {
id: jid,