fire contact update if pushname provided

This commit is contained in:
Adhiraj Singh
2021-09-27 16:48:46 +05:30
parent 07561bec53
commit 723d1d6712
2 changed files with 16 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ import makeWASocket, { WASocket, AuthenticationState, DisconnectReason, AnyMessa
sock.ev.on('messages.update', m => console.log(m))
sock.ev.on('presence.update', m => console.log(m))
sock.ev.on('chats.update', m => console.log(m))
sock.ev.on('contacts.update', m => console.log(m))
return sock
}