Whatsapp-web.js: Read receipts.

Created on 23 Feb 2020  路  4Comments  路  Source: pedroslopez/whatsapp-web.js

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
enhancement

Most helpful comment

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鈥檒l gladly take a look :)

All 4 comments

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

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

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鈥檒l gladly take a look :)

This has been implemented as of bb4ad11b 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
   */
});
Was this page helpful?
0 / 5 - 0 ratings

Related issues

waltergammarota picture waltergammarota  路  8Comments

centralderastreamentogps picture centralderastreamentogps  路  7Comments

iriobf picture iriobf  路  4Comments

nicolascav picture nicolascav  路  6Comments

felipemm picture felipemm  路  5Comments