ookamiiixd / baileys-api

Simple WhatsApp REST API with multiple device support
MIT License
433 stars 329 forks source link

Chat upsert does not provide sent/received message data #145

Closed rahmat-why closed 1 year ago

rahmat-why commented 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}]]

ookamiiixd commented 1 year ago

It's the default behavior of baileys event emitter and i couldn't do anything about it