mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
✏️ Fixed typo (#1488)
This commit is contained in:
@@ -148,7 +148,7 @@ import * as fs from 'fs'
|
|||||||
const { state, saveState } = useSingleFileAuthState('./auth_info_multi.json')
|
const { state, saveState } = useSingleFileAuthState('./auth_info_multi.json')
|
||||||
// will use the given state to connect
|
// will use the given state to connect
|
||||||
// so if valid credentials are available -- it'll connect without QR
|
// so if valid credentials are available -- it'll connect without QR
|
||||||
const conn = makeSocket({ auth: state })
|
const conn = makeWASocket({ auth: state })
|
||||||
// this will be called as soon as the credentials are updated
|
// this will be called as soon as the credentials are updated
|
||||||
sock.ev.on ('creds.update', saveState)
|
sock.ev.on ('creds.update', saveState)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user