feat: Added update message endpoint

This commit is contained in:
Davidson Gomes
2024-01-03 10:18:20 -03:00
parent a446df4620
commit 7373eea842
6 changed files with 71 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import {
ProfileStatusDto,
ReadMessageDto,
SendPresenceDto,
UpdateMessageDto,
WhatsAppNumberDto,
} from '../dto/chat.dto';
import { InstanceDto } from '../dto/instance.dto';
@@ -117,4 +118,9 @@ export class ChatController {
logger.verbose('requested removeProfilePicture from ' + instanceName + ' instance');
return await this.waMonitor.waInstances[instanceName].removeProfilePicture();
}
public async updateMessage({ instanceName }: InstanceDto, data: UpdateMessageDto) {
logger.verbose('requested updateMessage from ' + instanceName + ' instance');
return await this.waMonitor.waInstances[instanceName].updateMessage(data);
}
}