@deathnaitsa/wa-api 2.0.22 → 2.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -77
- package/dist/WhatsAppClient.cjs +1 -1
- package/dist/WhatsAppClient.js +1 -1
- package/dist/auth/sqliteAuthState.cjs +1 -0
- package/dist/auth/sqliteAuthState.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,31 +35,29 @@ Eine minimalistische, stabile WhatsApp Multi-Device API basierend auf Baileys mi
|
|
|
35
35
|
- [Sicherheit](#-sicherheit)
|
|
36
36
|
- [Lizenz](#-lizenz)
|
|
37
37
|
|
|
38
|
-
##
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
- ✅ **Webhook Support** (Externe Integrationen)
|
|
62
|
-
- ✅ **Auto-Reconnect** (Exponential Backoff, Max Retries)
|
|
38
|
+
## Status
|
|
39
|
+
|
|
40
|
+
### Implementiert
|
|
41
|
+
- Multi-Session Support
|
|
42
|
+
- SQLite Auth Support (optional, statt 100+ JSON-Dateien nur 1 DB-Datei)
|
|
43
|
+
- Session Control (Start, Stop, Restart, Pause, Resume)
|
|
44
|
+
- Event System (Messages, Connected, Disconnected)
|
|
45
|
+
- Statistik-System mit JSON-Persistenz
|
|
46
|
+
- Message Parsing mit Mentions & Quoted Messages
|
|
47
|
+
- Uptime & Performance Tracking
|
|
48
|
+
- Media Support (Bilder, Videos, GIF-Playback)
|
|
49
|
+
- Sticker Support (Bilder, GIFs, Videos mit wa-sticker-formatter)
|
|
50
|
+
- Media Download
|
|
51
|
+
- Group Management (Erstellen, Bearbeiten, Teilnehmer verwalten)
|
|
52
|
+
- Advanced Messaging (Audio, Document, Location, Contact, Reactions)
|
|
53
|
+
- Contact Management (Kontakte abrufen, Profilbilder, Status)
|
|
54
|
+
- Presence & Typing (Tipp-Indikatoren, Aufnahme-Status)
|
|
55
|
+
- Poll Messages (Umfragen erstellen)
|
|
56
|
+
- Status/Stories (Status hochladen)
|
|
57
|
+
- Broadcast Lists (Massenversand)
|
|
58
|
+
- Message Queue & Rate Limiting (Queue-System mit Prioritäten)
|
|
59
|
+
- Webhook Support (Externe Integrationen)
|
|
60
|
+
- Auto-Reconnect (Exponential Backoff, Max Retries)
|
|
63
61
|
|
|
64
62
|
### 📋 Geplante Erweiterungen
|
|
65
63
|
- Message Editing (wenn Baileys unterstützt)
|
|
@@ -68,15 +66,15 @@ Eine minimalistische, stabile WhatsApp Multi-Device API basierend auf Baileys mi
|
|
|
68
66
|
|
|
69
67
|
## ✨ Features
|
|
70
68
|
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
69
|
+
- Multi-Session Support: Unbegrenzt viele WhatsApp-Accounts parallel
|
|
70
|
+
- Erweiterte Statistiken: Tracking von Nachrichten (empfangen/gesendet), Uptime, Restarts
|
|
71
|
+
- Persistente Statistiken: JSON-basierte Speicherung in `sessions/stats.json`
|
|
72
|
+
- SQLite Auth Support: Optional, Session-Daten in SQLite statt 100+ JSON-Dateien
|
|
73
|
+
- Volle Session-Control: Start, Stop, Restart, Pause, Resume einzelner Sessions
|
|
74
|
+
- Stabile Architektur: ~560 Zeilen Core-Code, minimale Komplexität
|
|
75
|
+
- Event-System: Event-Handler für Messages, Connections, Groups, etc.
|
|
76
|
+
- Error-Handling, Command-Locks, Chat-Assignment
|
|
77
|
+
- Performance-optimiert: Map-basierte Session-Verwaltung, keine unnötigen Dependencies
|
|
80
78
|
|
|
81
79
|
## 📦 Installation
|
|
82
80
|
|
|
@@ -523,11 +521,11 @@ pauseQueue('bot1'); // Queue pausieren
|
|
|
523
521
|
resumeQueue('bot1'); // Queue fortsetzen
|
|
524
522
|
```
|
|
525
523
|
|
|
526
|
-
|
|
527
|
-
-
|
|
528
|
-
-
|
|
529
|
-
-
|
|
530
|
-
-
|
|
524
|
+
Vorteile:
|
|
525
|
+
- Verhindert Spam-Erkennung
|
|
526
|
+
- Automatisches Rate Limiting
|
|
527
|
+
- Prioritäts-basierte Zustellung
|
|
528
|
+
- Pausieren/Fortsetzen möglich
|
|
531
529
|
|
|
532
530
|
### ✅ Webhook Support (Implementiert)
|
|
533
531
|
```javascript
|
|
@@ -620,11 +618,11 @@ client.on('reconnect:failed', ({ sessionId }) => {
|
|
|
620
618
|
});
|
|
621
619
|
```
|
|
622
620
|
|
|
623
|
-
|
|
624
|
-
-
|
|
625
|
-
-
|
|
626
|
-
-
|
|
627
|
-
-
|
|
621
|
+
Vorteile:
|
|
622
|
+
- Exponential Backoff verhindert Server-Überlastung
|
|
623
|
+
- Konfigurierbare Max Retries
|
|
624
|
+
- Automatische Wiederverbindung bei Netzwerkfehlern
|
|
625
|
+
- Connection Health Monitoring
|
|
628
626
|
|
|
629
627
|
#### ❌ Noch nicht implementiert
|
|
630
628
|
```javascript
|
|
@@ -974,43 +972,41 @@ wa_credentials/ # Session-Daten
|
|
|
974
972
|
- ❌ Business API erweiterte Features
|
|
975
973
|
- ❌ Chat Archive/Mute/Pin über API (manuell möglich)
|
|
976
974
|
|
|
977
|
-
### Vollständig implementiert
|
|
978
|
-
-
|
|
979
|
-
-
|
|
980
|
-
-
|
|
981
|
-
-
|
|
982
|
-
-
|
|
983
|
-
-
|
|
984
|
-
-
|
|
985
|
-
-
|
|
986
|
-
-
|
|
987
|
-
-
|
|
988
|
-
|
|
989
|
-
**Total: 60+ Funktionen implementiert!**
|
|
975
|
+
### Vollständig implementiert
|
|
976
|
+
- Group Management (12 Funktionen)
|
|
977
|
+
- Advanced Messaging (6 Funktionen)
|
|
978
|
+
- Contact Management (7 Funktionen)
|
|
979
|
+
- Presence & Typing (7 Funktionen)
|
|
980
|
+
- Poll Messages
|
|
981
|
+
- Status/Stories
|
|
982
|
+
- Broadcast Lists
|
|
983
|
+
- Message Queue & Rate Limiting (6 Funktionen)
|
|
984
|
+
- Webhook Support (3 Funktionen)
|
|
985
|
+
- Enhanced Auto-Reconnect mit Exponential Backoff
|
|
990
986
|
|
|
991
987
|
### Design-Philosophie
|
|
992
|
-
-
|
|
993
|
-
-
|
|
994
|
-
-
|
|
995
|
-
-
|
|
996
|
-
-
|
|
997
|
-
-
|
|
988
|
+
- Alle wichtigen Features implementiert
|
|
989
|
+
- Robustes Error-Handling und Rate Limiting
|
|
990
|
+
- Dual Package Support: CommonJS + ES Modules
|
|
991
|
+
- Event-Driven: Keine Polling, nur Events
|
|
992
|
+
- Map-basiert: Schnelle Session-Lookups
|
|
993
|
+
- Obfuskiert: Source Code geschützt
|
|
998
994
|
|
|
999
995
|
### Performance-Charakteristiken
|
|
1000
|
-
-
|
|
1001
|
-
-
|
|
1002
|
-
-
|
|
1003
|
-
-
|
|
1004
|
-
-
|
|
1005
|
-
-
|
|
1006
|
-
|
|
1007
|
-
##
|
|
1008
|
-
|
|
1009
|
-
-
|
|
1010
|
-
-
|
|
1011
|
-
-
|
|
1012
|
-
-
|
|
1013
|
-
-
|
|
996
|
+
- Sehr schnelle Session-Switches
|
|
997
|
+
- Geringer Memory-Footprint (~50-100MB pro Session)
|
|
998
|
+
- Keine Blocking Operations
|
|
999
|
+
- Built-in Rate Limiting
|
|
1000
|
+
- Queue System für Mass-Messaging
|
|
1001
|
+
- Auto-Reconnect mit Exponential Backoff
|
|
1002
|
+
|
|
1003
|
+
## Sicherheit
|
|
1004
|
+
|
|
1005
|
+
- Credentials werden lokal in `sessions/` gespeichert
|
|
1006
|
+
- Kein Cloud-Upload von Session-Daten
|
|
1007
|
+
- Baileys Multi-Device Encryption
|
|
1008
|
+
- Keine Credentials in Git committen
|
|
1009
|
+
- `sessions/` sollte in `.gitignore` sein
|
|
1014
1010
|
|
|
1015
1011
|
## 📝 Lizenz
|
|
1016
1012
|
|