Skip to content

Instantly share code, notes, and snippets.

View Iucasmaia's full-sized avatar

Lucas Maia Iucasmaia

View GitHub Profile
@Iucasmaia
Iucasmaia / Baileys-Interactive-Buttons-Pix-Reference.MD
Created March 8, 2026 16:16
Baileys Interactive Buttons & PIX Reference

Baileys Interactive Buttons & PIX Reference

Complete, self-contained reference for connecting to WhatsApp via Baileys and sending interactive native-flow messages (buttons, PIX payment, review & pay).

All code below imports exclusively from baileys and its peer dependencies. Replace placeholder values (JIDs, PIX keys, amounts) with real ones for production use.

Important: Interactive buttons and payment messages are rendered on the mobile WhatsApp app and the official Business API. WhatsApp Web/Desktop may show them as

@Iucasmaia
Iucasmaia / Commands to run and make nginx proxy work with auth
Created March 13, 2025 07:29
docker-compose.yml & nginx.conf - neko-rooms ARM
mkdir -p auth
chmod 755 auth
sudo apt-get update
sudo apt-get install -y apache2-utils
htpasswd -c auth/.htpasswd admin
@purpshell
purpshell / MessageCollectior.js
Last active February 23, 2026 16:42 — forked from Iucasmaia/maia.js
Message Collector for Baileys v4 and above
const { WAProto } = require('@whiskeysockets/baileys');
// Message Collectors / Wait for Message
class MessageCollection {
// Internal object to temporarily store msgs
#msgs = {};
// Is the socket event handler binded?
isBinded = false;
socket = null;