feat: function for openai assistant added

This commit is contained in:
Davidson Gomes
2024-08-08 18:47:52 -03:00
parent e7ca3cf254
commit 26a974a239
7 changed files with 80 additions and 7 deletions

View File

@@ -3345,6 +3345,11 @@ export class BaileysStartupService extends ChannelStartupService {
try {
const group = await this.client.groupMetadata(id.groupJid);
if (!group) {
this.logger.error('Group not found');
return null;
}
const picture = await this.profilePicture(group.id);
return {