#how can I get all group members numbers from group Name? pls help
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
how can I get all group members numbers from group Name? pls help
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
thanks