Hi everyone, could not find any thread or code that answered me that...
Is it possible to check if my message was read by the person I am sending me the message?
thanks
You鈥檙e looking for ack information in message objects. Ack = 1 corresponds to delivered (1 check), 2 = received by the user cellphone (double check) and 3 = readed by the user (blue double check)
Thanks @brunosoaresds , I've seen some more codes as follow:
-1 -> Answer from the other person
0 -> System/info message, usually the encryption message
1 -> Whatsapp server has received the message (single check)
2 -> Message/audio/media delivered to recipient's phone (double check)
3 -> Message was read (blue double check)
4 -> Voice has been heard by the recipient
I'm using the following javascript code:
window.Store.Chat
.filter((chat) => chat.msgs._last.id.fromMe)
.map(
(chat) => ({
read: chat.msgs._last.ack,
phone: chat.id._serialized,
msgid: chat.msgs._last.id.id
})
);
But the problem is: I'm trying to get the last sent message of every chat that was sent by me, sometimes the last message could be a false message that is there because it was a failed attempt to send or it could be a system message if it's the first message on the chat, I'll keep trying to get it working better but a little help would be awesome
You can use EventListener
Store.EventListener.listenTo(Store.Msg, "change:ack", (output) => {
var ack = output.ack,
to = output.to,
msgId = output.id.id;
console.log(`{"ack":[{"status":"${ack}", "phone": "${to}", "msgId": "${msgId}"}]}`);
});
Hi ecjN00B, could you attatch a simple example about how to use in python the function EventListener.listenTo in order to check is message was readed by user.
Thanks.
Hi ecjN00B, could you attatch a simple example about how to use in python the function EventListener.listenTo in order to check is message was readed by user.
Thanks.
message._js_obj["ack"]
You can use EventListener
Store.EventListener.listenTo(Store.Msg, "change:ack", (output) => { var ack = output.ack, to = output.to, msgId = output.id.id; console.log(`{"ack":[{"status":"${ack}", "phone": "${to}", "msgId": "${msgId}"}]}`); });
where should I put this script ?, I have no Idea to get this work
Most helpful comment
You can use EventListener