
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@neelegirl/wa-api
Advanced tools
✨ Elegante & einfache WhatsApp-Bibliothek zur Verwaltung mehrerer Sessions – mit universeller sendMessage
-Funktion und direkter relayMessage
-Unterstützung für Profis.
⚠️ Wichtiger Hinweis:
Diese Bibliothek ist nur mit @neelegirl/baileys verwandt.
Andere Baileys-Varianten werden nicht unterstützt – bitte um Verständnis. 💖
sendMessage
)relayMessage
)npm install @neelegirl/wa-api@latest
// CommonJS
const onimai = require('@neelegirl/wa-api');
// ES Module
import * as onimai from '@neelegirl/wa-api';
await onimai.startSession('session1');
await onimai.startSessionWithPairingCode('session2', {
phoneNumber: '491234567890'
});
const all = onimai.getAllSession();
const one = onimai.getSession('session1');
const loaded = await onimai.loadSessionsFromStorage();
sendMessage
)await onimai1.sendMessage(sessionId, jidOrPhone, content, options);
📨 Typ | 📘 Beschreibung | 🧾 Inhalt Beispiel |
---|---|---|
Text | Einfache Nachricht | { text: 'Hallo!' } |
Bild | Bild mit Caption | { image: { url: './img.png' }, caption: 'Hey' } |
Video | Video mit Caption | { video: { url: './vid.mp4' }, caption: 'Video' } |
GIF | Loop-Video | { video: { url: './gif.mp4' }, gifPlayback: true } |
Audio | Voice Note (OGG/Opus) | { audio: fs.createReadStream('voice.ogg'), mimetype: 'audio/ogg', ptt: true } |
Dokument | PDF o.ä. senden | { document: { url: './doc.pdf', filename: 'Beispiel.pdf' } } |
Umfrage | Poll-Optionen | { pollCreationMessage: { name: 'Frage?', options: [...], selectableCount: 1 } } |
Reaktion | Emoji antworten | { react: { text: '❤️', key: msg.key } } |
Löschen | Nachricht zurückziehen | { delete: msg.key } |
Pin | Nachricht anpinnen | { pin: { type: 1, time: 3600, key: msg.key } } |
Kontakt | vCard teilen | { contacts: { displayName: 'Max', contacts: [{ vcard }] } } |
Standort | Standort senden | { location: { degreesLatitude: 52.52, degreesLongitude: 13.405 } } |
Weiterleiten | Nachricht weitergeben | { forward: origMsg } |
Status | Story posten | { video: { url: 'story.mp4' }, caption: 'Mein Status' } |
relayMessage
)await onimai1.relayMessage(sessionId, chatJid, {
protocolMessage: {
key: { remoteJid: chatJid, fromMe: true, id: targetId },
type: 7
}
}, { messageId: targetId });
await onimai1.relayMessage(sessionId, groupJid, {
disappearingMessagesInChat: onimai.Defaults.WA_DEFAULT_EPHEMERAL
}, {});
await onimai.relayMessage(sessionId, groupJid, {
disappearingMessagesInChat: 0
}, {});
await onimai1.relayMessage(sessionId, 'status@broadcast', {
videoMessage: { url: './story.mp4' },
caption: 'Meine Story'
}, {
statusJidList: ['491234567890@s.whatsapp.net']
});
await onimai1.relayMessage(sessionId, chatJid, {
forward: origMsg
}, { messageId: origMsg.key.id });
await onimai1.relayMessage(sessionId, userJid, {
profilePictureChange: {
displayPicture: fs.readFileSync('./newprofile.jpg')
}
}, { messageId: 'updateProfile' });
await onimai1.relayMessage(sessionId, chatJid, {
protocolMessage: {
key: { remoteJid: chatJid },
type: 3
}
}, { messageId: 'markRead' });
await onimai1.relayMessage(
msg.sessionId,
msg.key.remoteJid,
{ conversation: 'Custom Message ID' },
{ messageId: `onimai${Date.now()}` }
);
onimai.onConnected(id => console.log('✅ Online:', id));
onimai.onQRUpdated(info => console.log('📲 QR-Code:', info));
onimai.onMessageReceived(msg => console.log('📥 Nachricht:', msg));
try {
await onimai1.sendMessage(...);
} catch (e) {
console.error('⚠️ Fehler:', e);
}
© 2026 @neelegirl/wa-api
💌 Support: neelehoven@gmail.com
📚 Dokumentation: wa-api.org
FAQs
Multi Session Whatsapp Library
The npm package @neelegirl/wa-api receives a total of 7 weekly downloads. As such, @neelegirl/wa-api popularity was classified as not popular.
We found that @neelegirl/wa-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.