✏️ Fixed typo (#1488)

This commit is contained in:
Aman Dutt
2022-04-17 16:16:15 +05:30
committed by GitHub
parent 4e85f78c4e
commit fdf957b338

View File

@@ -148,7 +148,7 @@ import * as fs from 'fs'
const { state, saveState } = useSingleFileAuthState('./auth_info_multi.json')
// will use the given state to connect
// 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
sock.ev.on ('creds.update', saveState)
```