[core] Adjust swagger for sendSeen

fixed #485
This commit is contained in:
devlikepro committed 2024-08-27 16:42:55 +07:00
1 parent ba120024a6
commit fb774f2caa
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -642,10 +642,13 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
async sendSeen(request: SendSeenRequest) {
const key = parseMessageId(request.messageId);
const participant = request.participant
? toJID(this.ensureSuffix(request.participant))
: undefined;
const data = {
remoteJid: key.remoteJid,
id: key.id,
participant: request.participant,
participant: participant,
};
return this.sock.readMessages([data]);
}
+1
View File
@@ -72,6 +72,7 @@ export class SendSeenRequest extends ChatRequest {
@ApiProperty({
example: '11111111111@c.us',
required: false,
default: null,
description:
'NOWEB engine only - the ID of the user that sent the message (undefined for individual chats)',
})