#how can I get all group members numbers from group Name? pls help

1 messages · Page 1 of 1 (latest)

wind heart
#

how can I get all group members numbers from group Name? pls help

hot bough
#

var groups = chats.filter(ghg => ghg.id._serialized. includes('@c.us'))

patent ibex
#
const chats = await client.getChats();
const yourChat = chats.filter(x => x.name == 'some group name')[0];
if (yourChat.isGroup) {
  console.log(yourChat.groupMetadata.participants);
}
#

you can also use .find

wind heart
#

thanks