whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Check user online state. [feature request]

Open iamrenaud opened this issue 4 years ago • 19 comments

Hi everyone.

Is it possible to get user online state? (like : online, seen today at X, etc)

Thank you!

iamrenaud avatar Feb 28 '20 14:02 iamrenaud

+1, this would be a good feature/function. Last Seen/is Online should, perhaps as a subset of Contact? Some new events would also be nice as well to be able to 'listen' for changes.

client.on('contact_state'...

stevefold avatar Mar 19 '20 14:03 stevefold

When will this implement? Any idea

hamzology avatar Dec 15 '20 13:12 hamzology

any news on this ?

creative-ae avatar Feb 14 '21 18:02 creative-ae

Has this been implemented yet ?

egeres avatar Apr 22 '21 08:04 egeres

A PR has been instantiated. #722 will throw an event when the state changes. You can store the presences in an object and fetch them any time later.

As an example:

const presences = {};

client.on("contact_change_state", (state, id) => {
  presences[id._serialized] = state;
})

presences["[email protected]"] // returns the state

Best regards,

PurpShell

PurpShell avatar Jul 04 '21 09:07 PurpShell

@pedroslopez we need more thought about this, how about a "requestPresenceUpdate" to sub then a 'presence-update' event?

PurpShell avatar Sep 15 '21 18:09 PurpShell

Any news on this feature?

erselakbay avatar Oct 23 '21 20:10 erselakbay

Following!

jtouris avatar Nov 02 '21 17:11 jtouris

Any updates?

gabrielcosi avatar Dec 04 '21 17:12 gabrielcosi

Any updates?

tonvital avatar Jan 29 '22 04:01 tonvital

Are there any news for the problem that whatsapp web dose not subscribe to all user state events. Or what is the limit there?

Sumis34 avatar Feb 21 '22 06:02 Sumis34

any updates ?

eirikaleid avatar May 23 '22 14:05 eirikaleid

Is there any update?

muhammad-bassiouni avatar Jul 03 '22 19:07 muhammad-bassiouni

no updates so far, could be implemented, but all the previous implementations failed.. will try later in the summer but can't guarantee anything for sure.

PurpShell avatar Jul 07 '22 14:07 PurpShell

Hi, any news on this?

RabbitRoaring avatar Jan 26 '23 13:01 RabbitRoaring

There is still no way to do this, is there?

EmilEmilchen avatar Jun 23 '23 20:06 EmilEmilchen

Hello guys, sorry to bother you, but there is any news about this enhancement?

GoldenSharkStudio avatar Nov 23 '23 19:11 GoldenSharkStudio

There is still no way to do this, is there?

felipeturing avatar Feb 24 '24 15:02 felipeturing