1 parent
ba120024a6
commit
fb774f2caa
2 files changed
+5
-1
No files matched your search
@@ -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]);
|
||||
}
|
||||
|
||||
@@ -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)',
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user