@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 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
- ## ⚠️ Status
39
-
40
- **🎉 Feature-Complete v2.0** - Die API ist stabil, vollständig und production-ready!
41
-
42
- ### Implementiert
43
- - ✅ Multi-Session Support
44
- - **SQLite Auth Support** - Optional, statt 100+ JSON-Dateien nur 1 DB-Datei
45
- - Session Control (Start, Stop, Restart, Pause, Resume)
46
- - Event System (Messages, Connected, Disconnected)
47
- - Statistik-System mit JSON-Persistenz
48
- - Message Parsing mit Mentions & Quoted Messages
49
- - Uptime & Performance Tracking
50
- - ✅ **Media Support** (Bilder, Videos, GIF-Playback)
51
- - **Sticker Support** (Bilder, GIFs, Videos → Sticker mit wa-sticker-formatter)
52
- - Media Download
53
- - **Group Management** (Erstellen, Bearbeiten, Teilnehmer verwalten)
54
- - **Advanced Messaging** (Audio, Document, Location, Contact, Reactions)
55
- - **Contact Management** (Kontakte abrufen, Profilbilder, Status)
56
- - **Presence & Typing** (Tipp-Indikatoren, Aufnahme-Status)
57
- - **Poll Messages** (Umfragen erstellen)
58
- - **Status/Stories** (Status hochladen)
59
- - **Broadcast Lists** (Massenversand)
60
- - **Message Queue & Rate Limiting** (Queue-System mit Prioritäten)
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
- - 🔄 **Multi-Session Support** - Unbegrenzt viele WhatsApp-Accounts parallel
72
- - 📊 **Erweiterte Statistiken** - Tracking von Nachrichten (empfangen/gesendet), Uptime, Restarts
73
- - 💾 **Persistente Statistiken** - JSON-basierte Speicherung in `sessions/stats.json`
74
- - 🗄️ **SQLite Auth Support** - Optional: Session-Daten in SQLite statt 100+ JSON-Dateien
75
- - 🎯 **Volle Session-Control** - Start, Stop, Restart, Pause, Resume einzelner Sessions
76
- - 🔒 **Stabile Architektur** - ~560 Zeilen Core-Code, minimale Komplexität
77
- - 📨 **Event-System** - Einfache Event-Handler für Messages, Connections, Groups, etc.
78
- - 🛡️ **Production-Ready** - Error-Handling, Command-Locks, Chat-Assignment
79
- - ⚡ **Performance-Optimiert** - Map-basierte Session-Verwaltung, keine unnötigen Dependencies
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
- **Vorteile:**
527
- - 🚫 Verhindert Spam-Erkennung
528
- - 📊 Automatisches Rate Limiting
529
- - 🎯 Prioritäts-basierte Zustellung
530
- - ⏸️ Pausieren/Fortsetzen möglich
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
- **Vorteile:**
624
- - 📈 Exponential Backoff verhindert Server-Überlastung
625
- - 🔢 Konfigurierbare Max Retries
626
- - 🎯 Automatische Wiederverbindung bei Netzwerkfehlern
627
- - 📊 Connection Health Monitoring
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 in v2.0 ✅
978
- - Group Management (Complete - 12 Funktionen)
979
- - Advanced Messaging (Complete - 6 Funktionen)
980
- - Contact Management (Complete - 7 Funktionen)
981
- - Presence & Typing (Complete - 7 Funktionen)
982
- - Poll Messages (Complete)
983
- - Status/Stories (Complete)
984
- - Broadcast Lists (Complete)
985
- - Message Queue & Rate Limiting (Complete - 6 Funktionen)
986
- - Webhook Support (Complete - 3 Funktionen)
987
- - Enhanced Auto-Reconnect (Complete mit Exponential Backoff)
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
- - **Feature-Complete über Minimalismus** - Alle wichtigen Features implementiert
993
- - **Production-Ready** - Robustes Error-Handling und Rate Limiting
994
- - **Dual Package Support** - CommonJS + ES Modules
995
- - **Event-Driven** - Keine Polling, nur Events
996
- - **Map-basiert** - Schnelle Session-Lookups
997
- - **Obfuskiert** - Source Code geschützt
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
- - Sehr schnelle Session-Switches
1001
- - Geringer Memory-Footprint (~50-100MB pro Session)
1002
- - Keine Blocking Operations
1003
- - Built-in Rate Limiting
1004
- - Queue System für Mass-Messaging
1005
- - Auto-Reconnect mit Exponential Backoff
1006
-
1007
- ## 🔒 Sicherheit
1008
-
1009
- - Credentials werden lokal in `sessions/` gespeichert
1010
- - Kein Cloud-Upload von Session-Daten
1011
- - Baileys Multi-Device Encryption
1012
- - ⚠️ **Keine Credentials in Git committen!**
1013
- - ⚠️ `sessions/` sollte in `.gitignore` sein
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