feat: qr code filename

This commit is contained in:
Leifer Mendez
2023-01-09 19:43:22 +01:00
parent 4d721f99e2
commit d794f604ac
7 changed files with 21 additions and 13 deletions

View File

@@ -19,9 +19,11 @@ const logger = new Console({
* https://github.com/pedroslopez/whatsapp-web.js
*/
class WebWhatsappProvider extends ProviderClass {
globalVendorArgs = { qrFile: 'qr.png' }
vendor
constructor() {
constructor(args) {
super()
this.globalVendorArgs = { ...this.globalVendorArgs, ...args }
this.vendor = new Client({
authStrategy: new LocalAuth(),
puppeteer: {