feat: added played receipt

This commit is contained in:
Adhiraj Singh
2022-08-04 11:55:35 +05:30
parent 9f3b00d58d
commit bed9e384ba
3 changed files with 13 additions and 12 deletions

View File

@@ -119,7 +119,7 @@ const startSock = async() => {
for(const msg of upsert.messages) {
if(!msg.key.fromMe && doReplies) {
console.log('replying to', msg.key.remoteJid)
await sock!.sendReadReceipt(msg.key.remoteJid!, msg.key.participant!, [msg.key.id!])
await sock!.readMessages([msg.key])
await sendMessageWTyping({ text: 'Hello there!' }, msg.key.remoteJid!)
}
}