pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.39k stars 3.67k forks source link

SendSeen #361

Closed prodriguezdlt closed 3 years ago

prodriguezdlt commented 4 years ago

I was testing the senseen functionality but when we call .sendSeen, it works but deletes the chat on our end D:

Btw Pedro, i sent you a little something through paypal and also tried to reach you by email and twitter but couldnt, let me know where can i contact you 👍

furkankahvecii commented 4 years ago

I can not understand that deletes the chat, please share us your code.

prodriguezdlt commented 4 years ago

Well, code is as simple as it can be...

WhatsApp.client.sendSeen(phone+"@c.us");

if i do that, it just deletes the full conversation with that number... i tough it would just marke the chat as seen and set the unRead to zero....

furkankahvecii commented 4 years ago
client.getChatById(telephoneNumber).then((chat) => {
    await chat.sendSeen();
})

or

const specificChat = await client.getChatById(telephoneNumber);
await specificChat.sendSeen();
prodriguezdlt commented 4 years ago

I tried that one too... and gives the same resulta, it deletes the conversation...

prodriguezdlt commented 4 years ago

yup, just tested it, and it deletes the conversacion,....

https://www.youtube.com/watch?v=EfXZPH6m8-w

pedroslopez commented 4 years ago

I just tested this myself and it's working as intended: the conversation is marked seen and nothing is deleted. I tried on my personal number just in case, but I have been running this on a 24/7 bot that automatically marks chats as seen when messages are received and it's still working fine.

Is there some setting in WhatsApp for Business on android? Can you try on another phone? I'm unable to reproduce the issue.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Ngatmuri commented 11 months ago

can Send Seen to Stories?