feature: add endpoint to retrieve chat data by phone number

This commit is contained in:
foqc
2025-07-21 12:21:45 -05:00
parent 1ca829c00b
commit 68e847d10e
3 changed files with 24 additions and 0 deletions

View File

@@ -70,6 +70,10 @@ export class ChatController {
return await this.waMonitor.waInstances[instanceName].fetchChats(query);
}
public async findChatByRemoteJid({ instanceName }: InstanceDto, remoteJid: string) {
return await this.waMonitor.waInstances[instanceName].findChatByRemoteJid(remoteJid);
}
public async sendPresence({ instanceName }: InstanceDto, data: SendPresenceDto) {
return await this.waMonitor.waInstances[instanceName].sendPresence(data);
}