Adição de Profile Route

This commit is contained in:
Alan Mosko
2023-07-21 15:32:28 -03:00
parent 3e3a175bdc
commit e851696430
4 changed files with 64 additions and 0 deletions

View File

@@ -47,6 +47,11 @@ export class ChatController {
logger.verbose('requested fetchProfilePicture from ' + instanceName + ' instance');
return await this.waMonitor.waInstances[instanceName].profilePicture(data.number);
}
public async fetchProfile({ instanceName }: InstanceDto, data: NumberDto) {
logger.verbose('requested fetchProfile from ' + instanceName + ' instance');
return await this.waMonitor.waInstances[instanceName].profile(instanceName, data.number);
}
public async fetchContacts({ instanceName }: InstanceDto, query: ContactQuery) {
logger.verbose('requested fetchContacts from ' + instanceName + ' instance');