Optional
autoOptional
browserPass a external browser instance, can be used with electron
Optional
browserParameters to be added into the chrome browser instance
Optional
browserPass the session token information you can receive this token with the await client.getSessionTokenBrowser () function
Optional
browserWSIf you want to use browserWSEndpoint
Optional
catchA callback will be received, informing a code to you connect
Optional
catchQRA callback will be received, informing the status of the qrcode
Optional
createCreates a folder when inserting an object in the client's browser, to work it is necessary to pass the parameters in the function create browserSessionToken
See tokenStore
Optional
debugOpens a debug session
Optional
deviceDefine the connected device name in WhatsApp app
Optional
deviceAutomatically closes the wppconnect only when is syncing the device (default 180000 miliseconds, 3 minutes, if you want to turn it off, assign 0 or false)
Optional
devtoolsOpen devtools by default
Optional
disableDisable custom Google Analytics
Optional
disableWill disable the welcoming message which appears in the beginning
Optional
folderFolder name when saving tokens if tokenStore is 'file'.
Optional
googleCustom Google Analytics Tracker Id, like 'G-XXXXXXXXXX' collect analytics data to your GA account
Optional
headlessHeadless chrome
Optional
linkSet custom Link Preview API servers
Optional
loggerWait for in chat to return a instance of Whatsapp
Optional
logQRLogs QR automatically in terminal
Optional
mkdirfolder directory tokens, just inside the wppconnect folder, example: { mkdirFolderToken: '/node_modules', } //will save the tokens folder in the node_modules directory
See tokenStore
Optional
onA callback will be received, informing data as percentage and loading screen message
Optional
pagePass a external page instance, can be used with electron
Optional
phoneInsert the phone number for connect by link phone, qr code not wil generate
Optional
poweredCustom variable for Google Analytics
Optional
proxyDefine the proxy settings for the connection
The password for the proxy server
The URL of the proxy server
The username for the proxy server
Optional
puppeteerWill be passed to puppeteer.launch
Optional
sessionYou must pass a string type parameter, this parameter will be the name of the client's session. If the parameter is not passed, the section name will be "session".
Optional
sessionInitial token to log in in WhatsApp. If not passed, the client will get it from tokenStore.
Optional
statusA callback will be received, informing the customer's status
Optional
tokenToken store used to manage token tokenStore
Optional
updatesLogs info updates automatically in terminal
Optional
useIf false will use Chromium instance
Optional
waitWait for in chat to return a instance of Whatsapp
Optional
whatsappQuando definido, essa opção força o carregamento de uma versão específica do WhatsApp WEB Normalmente, versões mais antigas continuam funcionando por mais um tempo, assim, com essa opção, é possível ter uma janela de tempo maior para se preparar para atualizações. Caso seja definido vazio ou null, será usado a versão atual, ou seja, sem forçar versão específica.
Automatically closes the wppconnect only when scanning the QR code (default 60000 miliseconds, if you want to turn it off, assign 0 or false)