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:
@@ -36,6 +36,7 @@ import makeWASocket, { WASocket, AuthenticationState, DisconnectReason, AnyMessa
|
|||||||
const startSock = () => {
|
const startSock = () => {
|
||||||
const sock = makeWASocket({
|
const sock = makeWASocket({
|
||||||
logger: P({ level: 'trace' }),
|
logger: P({ level: 'trace' }),
|
||||||
|
printQRInTerminal: true,
|
||||||
auth: loadState()
|
auth: loadState()
|
||||||
})
|
})
|
||||||
sock.ev.on('messages.upsert', async m => {
|
sock.ev.on('messages.upsert', async m => {
|
||||||
|
|||||||
Reference in New Issue
Block a user