Update example.ts

This commit is contained in:
Adhiraj Singh
2021-10-28 13:24:35 +05:30
parent 8a23d8ecd6
commit 18c6b44b9a

View File

@@ -36,6 +36,7 @@ import makeWASocket, { WASocket, AuthenticationState, DisconnectReason, AnyMessa
const startSock = () => {
const sock = makeWASocket({
logger: P({ level: 'trace' }),
printQRInTerminal: true,
auth: loadState()
})
sock.ev.on('messages.upsert', async m => {