Code Monkey home page Code Monkey logo

asuna's Introduction

inos-baileys-wabot

WhatsApp Bot Using Baileys Library By InosID!

  • HEROKU APP

Heroku Deploy Beta

First deploy bot, Click the deploy icon below !

Deploy

Then click view web. After that, scan the qr, Done.

  • RDP/VPS USER

First download tools, Click icon to download !

Termux/Ubuntu/Linux User

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


moo-d mrfzvx12 YourAlfabet
Fxc7 Hadi-Api Ahmadzakix
Finox999 Fauzy-Rahadian Arifi Razzaq
Caliph91 AffisJunianto Monxnl

Send Message

Send Text Message

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!")

Send Image Message

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.
 */

Send File Message

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.
 */

Send File From Url Message

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.
 */

Send Button Message

CXD.sendButton(from, "content", "footer", [
  {
    buttonId: `row`
    buttonText: {
      displayText: 'button',
    },
    type: 1,
  },
], { quoted: msg })

Note

If this script has an error, you can report it via issue.

asuna's People

Contributors

devn2 avatar

Watchers

 avatar

Forkers

hilmiganzbot12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.