
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@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.
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 30 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.