New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

vinzzxd

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vinzzxd

Vinzz-Developer

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
5
-73.68%
Maintainers
1
Weekly downloads
 
Created
Source

Modified Whatsapp-API

Usage

"depencies": {
  "@whiskeysockets/baileys": "github:VinzzOfficial/Baileys"
}

Import

const {
  default:makeWASocket,
  // Other Options 
} = require('@whiskeysockets/baileys');

How To Connect To Whatsapp

With QR Code

const {
  default: makeWASocket
} = require('@whiskeysockets/baileys');

const client = makeWASocket({
  browser: ['Ubuntu', 'Chrome', '20.00.1'],
  printQRInTerminal: true
})

Connect With Number

const {
  default: makeWASocket,
  fetchLatestWAWebVersion
} = require('@whiskeysockets/baileys');

const client = makeWASocket({
  browser: ['Ubuntu', 'Chrome', '20.00.1'],
  printQRInTerminal: false,
  version: fetchLatestWAWebVersion()
  // Other options
});

const number = "628XXXXX";
const code = await client.requestPairingCode(number.trim) /* Use : (number, "YYYYYYYY") for custom-pairing */

console.log("Ur pairing code : " + code)

Sending messages

send orderMessage

const fs = require('fs');
const ZeppImg = fs.readFileSync('./ZeppImage');

await client.sendMessage(m.chat, {
  thumbnail: ZeppImg,
  message: "Gotta get a grip",
  orderTitle: "7eppeli-Corporation",
  totalAmount1000: 72502,
  totalCurrencyCode: "IDR"
}, { quoted:m })

send pollResultSnapshotMessage

await client.sendMessage(m.chat, {
  pollResultMessage: {
    name: "7eppeli-Corporation",
    options: [
      {
        optionName: "poll 1"
      },
      {
        optionName: "poll 2"
      }
    ],
    newsletter: {
      newsletterName: "7eppeli | Killer Queen Information",
      newsletterJid: "1@newsletter"
    }
  }
})

send productMessage

await client.relayMessage(m.chat, {
  productMessage {
    title: "7eppeli.pdf",
    description: "zZZ...",
    thumbnail: { url: "./ZeppImage" },
    productId: "EXAMPLE_TOKEN",
    retailerId: "EXAMPLE_RETAILER_ID",
    url: "https://t.me/YuukeyD7eppeli",
    body: "Nak Tido",
    footer: "Footer",
    buttons: [
      {
        name: "cta_url",
        buttonParamsJson: "{\"display_text\":\"7eppeli-Pdf\",\"url\":\"https://t.me/YuukeyD7eppeli\"}"
      }
    ],
    priceAmount1000: 72502,
    currencyCode: "IDR"
  }
})

Follow https://t.me/TenkaWaBails kalau mau liat type message yg lain :v

Keywords

whatsapp-baileys

FAQs

Package last updated on 11 Feb 2026

Related posts