WhatsApp Bot Using Baileys Library By InosID!
- HEROKU APP
Heroku Deploy Beta
First deploy bot, Click the deploy icon below !
Then click view web. After that, scan the qr, Done.
- RDP/VPS USER
First download tools, Click icon to download !
Make sure everything is in good condition
First, install
• apt install git -y
• apt install ffmpeg -y
• apt install nodejs -y
If everything has been confirmed to be safe and installed, continue with the clone repo
• git clone https://github.com/InosID/inos-baileys-wabot
• mv inos-baileys-wabot inosbot
• cd inosbot
• npm i
• npm start
For all questions in the installation just select y the second step is to just change the number of the owner of the bot and finally scan the qr code
Powered By
let Baileys = require('@adiwajshing/baileys')
// Get message type from Baileys
let { text } = Baileys.MessageType
// Send text
CXD.sendText(from, "Hello World!")
// Send text with reply
CXD.reply("Hello World!")
let Baileys = require('@adiwajshing/baileys')
let fs = require('fs')
// Get type from Baileys
let {
text,
image
} = Baileys.MessageType
let locationImg = fs.readFileSync('./lib/emror.jpeg')
// Send image
CXD.sendImage(from, locationImg, "This is caption.", false)
/**
* If you wan't without reply, change the true to false.
*/
// Send image in website
let website = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQKTvqbVbQdjSx7J6IvfQpk-8iNopG_Ox7UCg&usqp=CAU"
CXD.sendImage(from, website, "This is caption.", true)
/**
* If you wan't without reply, change the true to false.
*/
let Baileys = require('@adiwajshing/baileys')
// Get message type from Baileys
let {
text,
image,
document,
audio,
video
} = Baileys.MessageType
// Location file
let locationFile = './views/favicon.png'
// Send file
CXD.sendFile(from, locationFile, 'this is caption', true)
/**
* If you wan't without reply, change the true to false.
*/
let Baileys = require('@adiwajshing/baileys')
// Get message type from Baileys
let {
text,
image,
document,
audio,
video
} = Baileys.MessageType
// Url
urls = 'https://website.com'
// Send file from url
CXD.sendFileFromUrl(from, urls, 'image', "This is caption", true)
/**
* If you wan't without reply, change the true to false.
* If the file type is document, change 'image' to 'document' etc.
*/
CXD.sendButton(from, "content", "footer", [
{
buttonId: `row`
buttonText: {
displayText: 'button',
},
type: 1,
},
], { quoted: msg })
If this script has an error, you can report it via issue.