mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add contacts to chats.set event
This commit is contained in:
@@ -26,7 +26,9 @@ const startSock = () => {
|
||||
}
|
||||
|
||||
sock.ev.on('messages.upsert', async m => {
|
||||
console.log(JSON.stringify(m, undefined, 2))
|
||||
if(m.type === 'append' || m.type === 'notify') {
|
||||
console.log(JSON.stringify(m, undefined, 2))
|
||||
}
|
||||
|
||||
const msg = m.messages[0]
|
||||
if(!msg.key.fromMe && m.type === 'notify') {
|
||||
|
||||
Reference in New Issue
Block a user