mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update example.ts
This commit is contained in:
@@ -31,7 +31,7 @@ async function example() {
|
|||||||
console.log(`you have ${conn.chats.length} chats, new chats available: ${hasNewChats}`)
|
console.log(`you have ${conn.chats.length} chats, new chats available: ${hasNewChats}`)
|
||||||
})
|
})
|
||||||
conn.on('contacts-received', () => {
|
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
|
// loads the auth file credentials if present
|
||||||
|
|||||||
Reference in New Issue
Block a user