Created
July 27, 2025 16:40
-
-
Save namncn/669f6ccbddc2b45a403442a6816be114 to your computer and use it in GitHub Desktop.
Waziper - How to fix QR code not working:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Updated package.json: | |
| { | |
| "dependencies": { | |
| "@whiskeysockets/baileys": "^6.7.18", | |
| "pino": "^8.0.0", | |
| "axios": "^1.3.6", | |
| "cors": "^2.8.5", | |
| "express": "^4.18.2", | |
| "ip": "^1.1.8", | |
| "moment-timezone": "^0.5.43", | |
| "mysql": "^2.18.1", | |
| "node-cron": "^3.0.0", | |
| "qr-image": "^3.2.0", | |
| "rimraf": "^5.0.0", | |
| "socket.io": "^4.6.1", | |
| "spintax": "^0.0.1" | |
| } | |
| } | |
| Key changes in waziper/waziper.js: | |
| - Updated import: require(‘@whiskeysockets/baileys’) instead of @adiwajshing/baileys | |
| - Set printQRInTerminal: false | |
| - Added proper QR handling in the connection event listener | |
| - Added pino logger with silent level | |
| - Fixed browser configuration to [‘Mac OS’,’Chrome’,’96.0.4664.110′] | |
| Before (old code): | |
| const { | |
| default: makeWASocket, | |
| BufferJSON, | |
| useMultiFileAuthState, | |
| DisconnectReason | |
| } = require('@adiwajshing/baileys') | |
| // Missing proper browser config | |
| browser: [instance_id,'Chrome','96.0.4664.110'], | |
| After (fixed code): | |
| const { | |
| default: makeWASocket, | |
| BufferJSON, | |
| useMultiFileAuthState, | |
| DisconnectReason | |
| } = require('@whiskeysockets/baileys') | |
| // Fixed browser configuration | |
| browser: ['Mac OS','Chrome','96.0.4664.110'], | |
| Important: Make sure to clear your sessions folder after the update! | |
| The QR code now generates properly and can be retrieved via the get_qrcode function using the qr-image package.Works perfectly now! 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment