Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read receipts. #67

Closed
iamshouvikmitra opened this issue Feb 23, 2020 · 4 comments
Closed

Read receipts. #67

iamshouvikmitra opened this issue Feb 23, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@iamshouvikmitra
Copy link

Is there a way to fetch the read receipt information from a message id?

The information may be something like;

  1. SENT
  2. DELIVERED
  3. READ
@iamshouvikmitra
Copy link
Author

We usually get the message id in the payload returned while sending a message.

@joaomirandas
Copy link
Contributor

Yeah, i made and fork and already implemented that https://github.com/joaomirandasa/whatsapp-web.js

@pedroslopez
Copy link
Owner

Yeah, i made and fork and already implemented that https://github.com/joaomirandasa/whatsapp-web.js
@joaomirandasa

If you have implemented it please submit a pull request to this repository and I’ll gladly take a look :)

@pedroslopez pedroslopez added the enhancement New feature or request label Feb 25, 2020
@pedroslopez
Copy link
Owner

pedroslopez commented Feb 27, 2020

This has been implemented as of bb4ad11 and will be included in the next release :)

Example:

client.on('message_ack', (message, ack) => {
    // message: the message affected
    // ack: the new ack value

   /*
        POSSIBLE ACK VALUES:
        ACK_ERROR: -1
        ACK_PENDING: 0
        ACK_SERVER: 1
        ACK_DEVICE: 2
        ACK_READ: 3
        ACK_PLAYED: 4
   */
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants