Comments (11)
he gets in scope now 2 callback
venom.create("session-develop").then((client) => {
start(client)
}).catch(erro => console.log(erro))
OR
venom.create("session-develop", ("statusFind") =>{
console.log(statusFind)
}).then((client) => {
start(client)
}).catch(erro => console.log(erro))
OR
venom.create("session-name", (base64Qr, asciiQR) => {
console.log(asciiQR);
exportQR(base64Qr, "documentos/qrcode.png");
}, (statusFind) =>{
console.log(statusFind)
}).then((client) => {
start(client)
}).catch(erro => console.log(erro))
from venom.
Tried using this sample
create('sessionName', qrCallback, {
headless: true, // Headless chrome
devtools: false, // Open devtools by default
useChrome: true, // If false will use Chromium instance
debug: false, // Opens a debug session
logQR: true // Logs QR automatically in terminal
browserArgs: [''] // Parameters to be added into the chrome browser instance
refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds
});
from venom.
Hello! 5 options:
venom.create("session-name", {
headless: true, // Headless chrome
devtools: false, // Open devtools by default
useChrome: true, // If false will use Chromium instance
debug: false, // Opens a debug session
logQR: true, // Logs QR automatically in terminal
browserArgs: [''], // Parameters to be added into the chrome browser instance
refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds
}).then((client) => {
start(client)
}).catch(erro => console.log(erro))
venom.create("session-develop", (base64Qr, asciiQR) => {
// To log the QR in the terminal
console.log(asciiQR);
// To write it somewhere else in a file
exportQR(base64Qr, "documentos/file.png");
}, (statusFind) =>{
console.log(statusFind+'\n\n')
},{
headless: true, // Headless chrome
devtools: false, // Open devtools by default
useChrome: true, // If false will use Chromium instance
debug: false, // Opens a debug session
logQR: true, // Logs QR automatically in terminal
browserArgs: [''], // Parameters to be added into the chrome browser instance
refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds
}).then((client) => {
start(client)
}).catch(erro => console.log(erro))
venom.create("session-develop", (base64Qr, asciiQR) => {
// To log the QR in the terminal
console.log(asciiQR);
// To write it somewhere else in a file
exportQR(base64Qr, "documentos/file.png");
}).then((client) => {
start(client)
}).catch(erro => console.log(erro))
venom.create("session-develop",() =>{}, (statusFind) =>{
console.log(statusFind+'\n\n')
}).then((client) => {
start(client)
}).catch(erro => console.log(erro))
venom.create("session-develop").then((client) => {
start(client)
}).catch(erro => console.log(erro))
from venom.
Updated documentation, Thank You!
from venom.
Hello! 5 options:
venom.create("session-name", { headless: true, // Headless chrome devtools: false, // Open devtools by default useChrome: true, // If false will use Chromium instance debug: false, // Opens a debug session logQR: true, // Logs QR automatically in terminal browserArgs: [''], // Parameters to be added into the chrome browser instance refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds }).then((client) => { start(client) }).catch(erro => console.log(erro))
This is not working. Error result:
TypeError: catchQR is not a function
at SafeSubscriber._next (/.../node_modules/venom-bot/dist/controllers/initializer.js:219:13)
venom.create("session-develop", (base64Qr, asciiQR) => { // To log the QR in the terminal console.log(asciiQR); // To write it somewhere else in a file exportQR(base64Qr, "documentos/file.png"); }, (statusFind) =>{ console.log(statusFind+'\n\n') },{ headless: true, // Headless chrome devtools: false, // Open devtools by default useChrome: true, // If false will use Chromium instance debug: false, // Opens a debug session logQR: true, // Logs QR automatically in terminal browserArgs: [''], // Parameters to be added into the chrome browser instance refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds }).then((client) => { start(client) }).catch(erro => console.log(erro))
Not working also
ReferenceError: exportQR is not defined
venom.create("session-develop", (base64Qr, asciiQR) => { // To log the QR in the terminal console.log(asciiQR); // To write it somewhere else in a file exportQR(base64Qr, "documentos/file.png"); }).then((client) => { start(client) }).catch(erro => console.log(erro))
Same Error...
Not working also
ReferenceError: exportQR is not defined
venom.create("session-develop",() =>{}, (statusFind) =>{ console.log(statusFind+'\n\n') }).then((client) => { start(client) }).catch(erro => console.log(erro))
This Sample is working, but I need to set the debug parameters to be true.
venom.create("session-develop").then((client) => { start(client) }).catch(erro => console.log(erro))
This is working, but need debug parameters to be true
from venom.
Hello! 5 options:
venom.create("session-name", { headless: true, // Headless chrome devtools: false, // Open devtools by default useChrome: true, // If false will use Chromium instance debug: false, // Opens a debug session logQR: true, // Logs QR automatically in terminal browserArgs: [''], // Parameters to be added into the chrome browser instance refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds }).then((client) => { start(client) }).catch(erro => console.log(erro))This is not working. Error result:
TypeError: catchQR is not a function
at SafeSubscriber._next (/.../node_modules/venom-bot/dist/controllers/initializer.js:219:13)venom.create("session-develop", (base64Qr, asciiQR) => { // To log the QR in the terminal console.log(asciiQR); // To write it somewhere else in a file exportQR(base64Qr, "documentos/file.png"); }, (statusFind) =>{ console.log(statusFind+'\n\n') },{ headless: true, // Headless chrome devtools: false, // Open devtools by default useChrome: true, // If false will use Chromium instance debug: false, // Opens a debug session logQR: true, // Logs QR automatically in terminal browserArgs: [''], // Parameters to be added into the chrome browser instance refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds }).then((client) => { start(client) }).catch(erro => console.log(erro))Not working also
ReferenceError: exportQR is not definedvenom.create("session-develop", (base64Qr, asciiQR) => { // To log the QR in the terminal console.log(asciiQR); // To write it somewhere else in a file exportQR(base64Qr, "documentos/file.png"); }).then((client) => { start(client) }).catch(erro => console.log(erro))Same Error...
Not working also
ReferenceError: exportQR is not definedvenom.create("session-develop",() =>{}, (statusFind) =>{ console.log(statusFind+'\n\n') }).then((client) => { start(client) }).catch(erro => console.log(erro))This Sample is working, but I need to set the debug parameters to be true.
venom.create("session-develop").then((client) => { start(client) }).catch(erro => console.log(erro))This is working, but need debug parameters to be true
It is not normal to work this example which is just an example, but it is not a qr function, now and with you, here is only taught how to mess with the repo, more follows a part of the code:
function exportQR(qrCode, path) {
qrCode = qrCode.replace("data:image/png;base64,", "");
const imageBuffer = Buffer.from(qrCode, "base64");
// Creates "marketing-qr.png" file
fs.writeFileSync(path, imageBuffer);
}
look the documentation
from venom.
Hello! 5 options:
venom.create("session-name", { headless: true, // Headless chrome devtools: false, // Open devtools by default useChrome: true, // If false will use Chromium instance debug: false, // Opens a debug session logQR: true, // Logs QR automatically in terminal browserArgs: [''], // Parameters to be added into the chrome browser instance refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds }).then((client) => { start(client) }).catch(erro => console.log(erro))This is not working. Error result:
TypeError: catchQR is not a function
at SafeSubscriber._next (/.../node_modules/venom-bot/dist/controllers/initializer.js:219:13)venom.create("session-develop", (base64Qr, asciiQR) => { // To log the QR in the terminal console.log(asciiQR); // To write it somewhere else in a file exportQR(base64Qr, "documentos/file.png"); }, (statusFind) =>{ console.log(statusFind+'\n\n') },{ headless: true, // Headless chrome devtools: false, // Open devtools by default useChrome: true, // If false will use Chromium instance debug: false, // Opens a debug session logQR: true, // Logs QR automatically in terminal browserArgs: [''], // Parameters to be added into the chrome browser instance refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds }).then((client) => { start(client) }).catch(erro => console.log(erro))Not working also
ReferenceError: exportQR is not definedvenom.create("session-develop", (base64Qr, asciiQR) => { // To log the QR in the terminal console.log(asciiQR); // To write it somewhere else in a file exportQR(base64Qr, "documentos/file.png"); }).then((client) => { start(client) }).catch(erro => console.log(erro))Same Error...
Not working also
ReferenceError: exportQR is not definedvenom.create("session-develop",() =>{}, (statusFind) =>{ console.log(statusFind+'\n\n') }).then((client) => { start(client) }).catch(erro => console.log(erro))This Sample is working, but I need to set the debug parameters to be true.
venom.create("session-develop").then((client) => { start(client) }).catch(erro => console.log(erro))This is working, but need debug parameters to be true
It is not normal to work this example which is just an example, but it is not a qr function, now and with you, here is only taught how to mess with the repo, more follows a part of the code:
function exportQR(qrCode, path) { qrCode = qrCode.replace("data:image/png;base64,", ""); const imageBuffer = Buffer.from(qrCode, "base64"); // Creates "marketing-qr.png" file fs.writeFileSync(path, imageBuffer); }look the documentation
It's working now, thanks!
In the
console.log(statusFind+'\n\n')
doesn't seem to return any value, is that right?
from venom.
Hello! 5 options:
venom.create("session-name", { headless: true, // Headless chrome devtools: false, // Open devtools by default useChrome: true, // If false will use Chromium instance debug: false, // Opens a debug session logQR: true, // Logs QR automatically in terminal browserArgs: [''], // Parameters to be added into the chrome browser instance refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds }).then((client) => { start(client) }).catch(erro => console.log(erro))This is not working. Error result:
TypeError: catchQR is not a function
at SafeSubscriber._next (/.../node_modules/venom-bot/dist/controllers/initializer.js:219:13)venom.create("session-develop", (base64Qr, asciiQR) => { // To log the QR in the terminal console.log(asciiQR); // To write it somewhere else in a file exportQR(base64Qr, "documentos/file.png"); }, (statusFind) =>{ console.log(statusFind+'\n\n') },{ headless: true, // Headless chrome devtools: false, // Open devtools by default useChrome: true, // If false will use Chromium instance debug: false, // Opens a debug session logQR: true, // Logs QR automatically in terminal browserArgs: [''], // Parameters to be added into the chrome browser instance refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds }).then((client) => { start(client) }).catch(erro => console.log(erro))Not working also
ReferenceError: exportQR is not definedvenom.create("session-develop", (base64Qr, asciiQR) => { // To log the QR in the terminal console.log(asciiQR); // To write it somewhere else in a file exportQR(base64Qr, "documentos/file.png"); }).then((client) => { start(client) }).catch(erro => console.log(erro))Same Error...
Not working also
ReferenceError: exportQR is not definedvenom.create("session-develop",() =>{}, (statusFind) =>{ console.log(statusFind+'\n\n') }).then((client) => { start(client) }).catch(erro => console.log(erro))This Sample is working, but I need to set the debug parameters to be true.
venom.create("session-develop").then((client) => { start(client) }).catch(erro => console.log(erro))This is working, but need debug parameters to be true
It is not normal to work this example which is just an example, but it is not a qr function, now and with you, here is only taught how to mess with the repo, more follows a part of the code:
function exportQR(qrCode, path) { qrCode = qrCode.replace("data:image/png;base64,", ""); const imageBuffer = Buffer.from(qrCode, "base64"); // Creates "marketing-qr.png" file fs.writeFileSync(path, imageBuffer); }look the documentation
It's working now, thanks!
In the
console.log(statusFind+'\n\n')
doesn't seem to return any value, is that right?
Callback Status Session
Gets the return if the session is isLogged or if it is notLogged
create('sessionName', qrCallback, (statusFind) => {
console.log(statusFind);
})
.then((client) => {
start(client);
})
.catch((erro) => console.log(erro));
from venom.
I don't see the Status Session logged in the console.Callback Status Session
Gets the return if the session is isLogged or if it is notLoggedcreate('sessionName', qrCallback, (statusFind) => { console.log(statusFind); }) .then((client) => { start(client); }) .catch((erro) => console.log(erro));
from venom.
here working, update npm venom-bot
from venom.
here working, update npm venom-bot
Very nice!
It is working now. Thanks!
from venom.
Related Issues (20)
- ERR_NAME_NOT_RESOLVED at https://web.whatsapp.com HOT 1
- Documentation offline HOT 1
- ERROR - onAnyMessage don't work on last version HOT 4
- [Bug] Error: Cannot read properties of undefined (reading 'profilePicFind') HOT 2
- Error [TypeError]: window.WAPI.waitNewAcknowledgements is not a function HOT 4
- The function IsLoggedIn not working for Whatsapp Web 2.3000.1013005935 HOT 1
- why the did not capture my own messages . i use onanyMessage function also but that did catch message also
- Request for adding new Feature :: link with mobile number so don't want to connect with Qr Code HOT 2
- Venom Connected, but not receiving messages HOT 6
- Error: read ECONNRESET
- Send Buttons not working!!!!! HOT 1
- Load Balancing Venom Bot HOT 1
- Duplicate messages | onAnMessage()
- Facing Issue In QR Code Scan Problem
- How much long the session can be active once logged in? HOT 2
- Not able to Login after scannig QR code (it fails) HOT 2
- ⠋ Loading sync... Infinito
- Error [TypeError]: Cannot read properties of undefined (reading 'map') while "deleteMessage()" HOT 1
- Hi, why sendListMenu not show any menu in client
- Getting Error After scan QR Error [ReferenceError]: WAPI is not defined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from venom.