Update example.ts

This commit is contained in:
chan32167
2020-11-22 18:45:07 -05:00
committed by GitHub
parent cd90d66c5e
commit c53b091484

View File

@@ -31,7 +31,7 @@ async function example() {
console.log(`you have ${conn.chats.length} chats, new chats available: ${hasNewChats}`)
})
conn.on('contacts-received', () => {
console.log(`you have ${Object.keys(conn.contacts).length} chats`)
console.log(`you have ${Object.keys(conn.contacts).length} contacts`)
})
// loads the auth file credentials if present