mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-25 22:57:44 -06:00
feat: Route to fetch all groups that the connection is part of
This commit is contained in:
@@ -1610,6 +1610,14 @@ export class WAStartupService {
|
||||
}
|
||||
}
|
||||
|
||||
public async fetchAllGroups() {
|
||||
try {
|
||||
return await this.client.groupFetchAllParticipating();
|
||||
} catch (error) {
|
||||
throw new NotFoundException('Error fetching group', error.toString());
|
||||
}
|
||||
}
|
||||
|
||||
public async inviteCode(id: GroupJid) {
|
||||
try {
|
||||
const code = await this.client.groupInviteCode(id.groupJid);
|
||||
|
||||
Reference in New Issue
Block a user