Whatsapp-web.js: How do you know the message id in message_ack?

Created on 5 May 2020  路  2Comments  路  Source: pedroslopez/whatsapp-web.js

Regards.
I am using the client a) class the message ack event to know the change in a message.
and I can't find the message id this is the code

client.on('message_ack', (message, ack) => {
       console.log('Mensaje ' + message.id);
       console.log('Estado ' + ack);

});

When you run

Mensaje [object Object]
Estado 2

How can I get this id?

Thank you?

Most helpful comment

Thank you.

Congratulations on your work

All 2 comments

Chat and message IDs are indeed objects. If you want to get the serialized string ID, you can use message.id._serialized

Thank you.

Congratulations on your work

Was this page helpful?
0 / 5 - 0 ratings

Related issues

parthibd picture parthibd  路  4Comments

ocracy picture ocracy  路  5Comments

waltergammarota picture waltergammarota  路  8Comments

MillesC picture MillesC  路  6Comments

franciscol99 picture franciscol99  路  3Comments