Open SirGateHgL opened 2 months ago
problem in your code, read the documentation!
The basis of your bot's code is not good and therefore the messages are not properly examined.
I have an open source base (WhatsApp bot multi device) for you if you want to reply to this message and put a reaction
If you need it
The basis of your bot's code is not good and therefore the messages are not properly examined.
I have an open source base (WhatsApp bot multi device) for you if you want to reply to this message and put a reaction
If you need it
Can I get the base?
Use getMessage
Use getMessage
I have used getMessage, but my first message after connecting to the bot is still sent as "waiting for this..."
Use getMessage
I have used getMessage, but my first message after connecting to the bot is still sent as "waiting for this..."
function removeFiles() { const directoryPath = './taira_baileys'; const excludedFile = 'creds.json';
fs.readdir(directoryPath, (err, files) => {
if (err) {
console.error(err);
return;
}
files.forEach((file) => {
if (file !== excludedFile) {
const filePath = path.join(directoryPath, file);
fs.unlink(filePath, (err) => {
if (err) {
console.error(err);
}
});
}
});
});
}
implement this on your end,to clear pre-keys and sender-key it worked for me.
When using the bot in a group chat, an error or bug will occur "waiting for this message...." but it can run normally in private chat.