npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gleysondevs/baileys-mod

v6.8.6

Published

Baileys modificada com suporte completo para botões, listas, interativos e reações

Downloads

9

Readme

🚀 Baileys-Gleyson-Mod

Versão customizada da Baileys com suporte completo para Botões, Listas, Interativos e Reações

npm version License TypeScript Node


📖 Sobre

Esta é uma versão modificada da biblioteca Baileys (WhatsApp Web API) com funcionalidades avançadas para bots:

  • Botões Simples (buttonsMessage)
  • Mensagens Interativas (interactiveMessage com NativeFlow)
  • Listas (listMessage com seções)
  • Reações (reactionMessage)
  • Suporte completo ao protocolo mais recente do WhatsApp

🔥 Novidades desta Versão

✨ Botões Simples

await sock.sendMessage(jid, { text: 'Escolha uma opção:', footer: 'Powered by Baileys-Mod', buttons: [ { buttonId: 'opt1', buttonText: { displayText: 'Opção 1' }, type: 1 }, { buttonId: 'opt2', buttonText: { displayText: 'Opção 2' }, type: 1 } ] })

text

✨ Mensagens Interativas

await sock.sendMessage(jid, { interactiveMessage: { body: { text: 'Escolha uma ação' }, footer: { text: 'Footer' }, nativeFlowMessage: { buttons: [ { name: 'quick_reply', buttonParamsJson: JSON.stringify({ display_text: 'Resposta Rápida', id: 'quick_1' }) } ] } } })

text

✨ Listas

await sock.sendMessage(jid, { text: 'Escolha um item da lista', buttonText: 'Ver Opções', sections: [ { title: 'Seção 1', rows: [ { title: 'Item 1', description: 'Descrição', rowId: 'row1' }, { title: 'Item 2', description: 'Descrição', rowId: 'row2' } ] } ] })

text

✨ Reações

await sock.sendMessage(jid, { react: { text: '❤️', // emoji key: messageKey // key da mensagem a ser reagida } })

text


📦 Instalação

NPM

npm install @gleysondevs/baileys-mod

text

Yarn

yarn add @gleysondevs/baileys-mod

text

Desenvolvimento Local (npm link)

Clone o repositório git clone https://github.com/seu-usuario/baileys-gleyson-mod.git cd baileys-gleyson-mod

Instale as dependências npm install

Compile npm run build

Crie link global npm link

No seu projeto cd ~/meu-bot npm link @gleysondevs/baileys-mod

text


🚀 Uso Básico

const { default: makeWASocket, useMultiFileAuthState } = require('@gleysondevs/baileys-mod')

async function connectToWhatsApp() { const { state, saveCreds } = await useMultiFileAuthState('./auth')

const sock = makeWASocket({ auth: state, printQRInTerminal: true })

sock.ev.on('creds.update', saveCreds)

sock.ev.on('connection.update', (update) => { const { connection } = update if (connection === 'open') { console.log('✅ Conectado ao WhatsApp!') } })

sock.ev.on('messages.upsert', async ({ messages }) => { const msg = messages if (!msg.message) return

text const text = msg.message.conversation || msg.message.extendedTextMessage?.text || '' const from = msg.key.remoteJid

// Exemplo: enviar botão if (text === '!botao') { await sock.sendMessage(from, { text: 'Escolha uma opção:', buttons: [ { buttonId: '1', buttonText: { displayText: 'Opção 1' }, type: 1 } ] }) } }) }

connectToWhatsApp()

text


📚 Documentação Completa

Funções Disponíveis

| Função | Descrição | |--------|-----------| | sendMessage() | Enviar qualquer tipo de mensagem | | sendButtonMessage() | Enviar botões simples | | sendInteractiveMessage() | Enviar mensagens interativas | | sendListMessage() | Enviar listas | | sendReaction() | Reagir a mensagens |

Exemplos Detalhados

Veja exemplos completos em:


🔧 Desenvolvimento

Scripts Disponíveis

Compilar TypeScript npm run build

Compilar em modo watch npm run build:watch

Limpar e recompilar npm run rebuild

Executar testes npm test

text

Estrutura do Projeto

baileys-gleyson-mod/ ├── src/ │ ├── Socket/ ← Envio de mensagens (modificado) │ ├── Utils/ ← Geração de conteúdo (modificado) │ ├── Types/ ← Tipos customizados (modificado) │ └── WABinary/ ← Protocolo binário WhatsApp ├── lib/ ← Código compilado └── package.json

text


🤝 Contribuindo

Contribuições são bem-vindas! Se você encontrar bugs ou tiver sugestões:

  1. Faça um fork do projeto
  2. Crie uma branch para sua feature (git checkout -b feature/MinhaFeature)
  3. Commit suas mudanças (git commit -m 'feat: adicionar nova feature')
  4. Push para a branch (git push origin feature/MinhaFeature)
  5. Abra um Pull Request

📄 Changelog

v6.8.6-custom (2025-11-12)

  • ✅ Adicionado suporte completo para botões simples
  • ✅ Adicionado suporte para mensagens interativas
  • ✅ Adicionado suporte para listas
  • ✅ Adicionado suporte para reações
  • ✅ Corrigido nó <biz> para envio correto
  • ✅ Atualizado protocolo para WhatsApp Web mais recente

📝 Licença

Este projeto está sob a licença MIT. Veja o arquivo LICENSE para mais detalhes.


🙏 Créditos


⚠️ Aviso Legal

Este projeto NÃO é afiliado, associado, autorizado, endossado por, ou de qualquer forma oficialmente conectado com WhatsApp ou qualquer uma de suas subsidiárias ou afiliadas.

Use por sua própria conta e risco. O uso desta biblioteca pode violar os Termos de Serviço do WhatsApp.


📞 Contato


Feito com ❤️ por GleysonDevs

⭐ Se este projeto te ajudou, deixe uma estrela!