Closed rahmat-why closed 1 year ago
I've done console.log but the sent/received message data doesn't appear
Code:
socket.ev.on('chats.upsert', (data) => { console.log(JSON.stringify(["UPSERT", data])) })
Response: ["UPSERT",[{"id":"628xx@s.whatsapp.net","conversationTimestamp":167xxx,"unreadCount":1}]]
["UPSERT",[{"id":"628xx@s.whatsapp.net","conversationTimestamp":167xxx,"unreadCount":1}]]
It's the default behavior of baileys event emitter and i couldn't do anything about it
I've done console.log but the sent/received message data doesn't appear
Code:
Response:
["UPSERT",[{"id":"628xx@s.whatsapp.net","conversationTimestamp":167xxx,"unreadCount":1}]]