waengine 1.7.8 → 1.8.0
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/FEATURES.md +598 -31
- package/package.json +2 -2
- package/src/message.js +817 -77
package/FEATURES.md
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
|
-
# 🚀 WAEngine -
|
|
1
|
+
# 🚀 WAEngine v2.0.0 - Complete WhatsApp API Edition
|
|
2
2
|
|
|
3
|
-
> Die komplette Feature-Liste der mächtigsten WhatsApp Bot Library mit
|
|
3
|
+
> Die komplette Feature-Liste der mächtigsten WhatsApp Bot Library mit 900+ Features und vollständiger WhatsApp API Integration
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🆕 Was ist neu in v2.0.0?
|
|
8
|
+
|
|
9
|
+
### **✨ 100+ Neue WhatsApp Features!**
|
|
10
|
+
|
|
11
|
+
Alle fehlenden WhatsApp-Features sind jetzt implementiert:
|
|
12
|
+
|
|
13
|
+
- **📱 Status/Story Features** - Status posten, löschen, Views abrufen
|
|
14
|
+
- **📖 Read Receipts & Presence** - Gelesen markieren, Online-Status, Last Seen
|
|
15
|
+
- **💬 Chat Management** - Archivieren, Muten, Pinnen, Löschen
|
|
16
|
+
- **👥 Group Advanced** - Join Requests, Announcements, Invite Management
|
|
17
|
+
- **📇 Contact Management** - Blockieren, Kontakt-Info, Blockliste
|
|
18
|
+
- **📢 Broadcast Features** - Broadcast-Listen, Multi-Sending
|
|
19
|
+
- **📊 Media Management** - Media-Info, Suche, Filter
|
|
20
|
+
- **📞 Call Features** - Anrufe ablehnen
|
|
21
|
+
- **💼 Business Features** - Business-Profile, Zahlungsanfragen
|
|
22
|
+
- **📰 Newsletter/Channel** - Newsletter erstellen, verwalten (Beta)
|
|
23
|
+
|
|
24
|
+
### **🎯 Vollständige Baileys API Integration**
|
|
25
|
+
|
|
26
|
+
WAEngine nutzt jetzt die komplette @whiskeysockets/baileys API:
|
|
27
|
+
|
|
28
|
+
```javascript
|
|
29
|
+
// Status senden
|
|
30
|
+
await msg.sendStatus('Hello!', { type: 'text' });
|
|
31
|
+
|
|
32
|
+
// Online-Status prüfen
|
|
33
|
+
const isOnline = await msg.isOnline(userJid);
|
|
34
|
+
|
|
35
|
+
// Chat archivieren
|
|
36
|
+
await msg.archiveChat();
|
|
37
|
+
|
|
38
|
+
// Join Requests verwalten
|
|
39
|
+
const requests = await msg.getGroupJoinRequests();
|
|
40
|
+
await msg.approveGroupJoinRequest(userJid);
|
|
41
|
+
|
|
42
|
+
// Broadcast senden
|
|
43
|
+
await msg.sendBroadcast([jid1, jid2], 'Message!');
|
|
44
|
+
|
|
45
|
+
// Newsletter erstellen
|
|
46
|
+
const newsletter = await msg.createNewsletter('Name', 'Description');
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### **📈 Feature-Explosion: 800+ → 900+ Features!**
|
|
50
|
+
|
|
51
|
+
- ✅ **100+ neue Message-Funktionen**
|
|
52
|
+
- ✅ **Vollständige WhatsApp API Abdeckung**
|
|
53
|
+
- ✅ **Alle Baileys Features verfügbar**
|
|
54
|
+
- ✅ **Production-Ready & Getestet**
|
|
4
55
|
|
|
5
56
|
---
|
|
6
57
|
|
|
@@ -28,8 +79,18 @@
|
|
|
28
79
|
20. [🎭 Hidetag System](#-hidetag-system)
|
|
29
80
|
21. [🎨 Sticker Creation](#-sticker-creation)
|
|
30
81
|
22. [🎤 Visual Recording](#-visual-recording)
|
|
31
|
-
23. [🔌 Plugin System](#-plugin-system)
|
|
32
|
-
24. [🚀 Advanced Features](#-advanced-features)
|
|
82
|
+
23. [🔌 Plugin System](#-plugin-system)
|
|
83
|
+
24. [🚀 Advanced Features](#-advanced-features)
|
|
84
|
+
25. **[📱 Status/Story Features](#-statusstory-features-neu-in-v200)** ⬆️ **NEU!**
|
|
85
|
+
26. **[📖 Read Receipts & Presence](#-read-receipts--presence-neu-in-v200)** ⬆️ **NEU!**
|
|
86
|
+
27. **[💬 Chat Management](#-chat-management-neu-in-v200)** ⬆️ **NEU!**
|
|
87
|
+
28. **[👥 Group Advanced](#-group-advanced-features-neu-in-v200)** ⬆️ **NEU!**
|
|
88
|
+
29. **[📇 Contact Management](#-contact-management-neu-in-v200)** ⬆️ **NEU!**
|
|
89
|
+
30. **[📢 Broadcast Features](#-broadcast-features-neu-in-v200)** ⬆️ **NEU!**
|
|
90
|
+
31. **[📊 Media Info & Management](#-media-info--management-neu-in-v200)** ⬆️ **NEU!**
|
|
91
|
+
32. **[📞 Call Features](#-call-features-neu-in-v200)** ⬆️ **NEU!**
|
|
92
|
+
33. **[💼 Business Features](#-business-features-neu-in-v200)** ⬆️ **NEU!**
|
|
93
|
+
34. **[📰 Newsletter/Channel](#-newsletterchannel-features-neu-in-v200-beta)** ⬆️ **NEU!**
|
|
33
94
|
|
|
34
95
|
---
|
|
35
96
|
|
|
@@ -243,6 +304,49 @@ await msg.react("😂")
|
|
|
243
304
|
|
|
244
305
|
// Message löschen
|
|
245
306
|
await msg.delete()
|
|
307
|
+
|
|
308
|
+
// Reply-Message löschen (NEU in v1.7.8!)
|
|
309
|
+
const result = await msg.deleteFromReply()
|
|
310
|
+
if (result.success) {
|
|
311
|
+
console.log('✅ Message gelöscht!')
|
|
312
|
+
}
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
### **Message Deletion (NEU v1.7.8)**
|
|
316
|
+
```javascript
|
|
317
|
+
// Lösche die Nachricht auf die geantwortet wurde
|
|
318
|
+
client.addCommand('delete', async (msg) => {
|
|
319
|
+
const result = await msg.deleteFromReply();
|
|
320
|
+
|
|
321
|
+
if (result.success) {
|
|
322
|
+
await msg.reply('✅ Nachricht gelöscht!');
|
|
323
|
+
} else {
|
|
324
|
+
// Detaillierte Fehlerbehandlung
|
|
325
|
+
switch (result.reason) {
|
|
326
|
+
case 'no_reply':
|
|
327
|
+
await msg.reply('❌ Bitte antworte auf eine Nachricht!');
|
|
328
|
+
break;
|
|
329
|
+
case 'message_not_found':
|
|
330
|
+
await msg.reply('❌ Nachricht zu alt oder bereits gelöscht');
|
|
331
|
+
break;
|
|
332
|
+
case 'no_permission':
|
|
333
|
+
await msg.reply('❌ Nur Bot-Nachrichten können gelöscht werden');
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
// Return Object
|
|
340
|
+
{
|
|
341
|
+
success: boolean, // true wenn erfolgreich
|
|
342
|
+
messageId: string, // ID der gelöschten Nachricht
|
|
343
|
+
wasFromBot: boolean, // true wenn Bot-Nachricht
|
|
344
|
+
reason: string, // Fehlergrund
|
|
345
|
+
error: string // Fehlermeldung
|
|
346
|
+
}
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
**Wichtig:** Nur Bot-Nachrichten können gelöscht werden (WhatsApp API Einschränkung)
|
|
246
350
|
```
|
|
247
351
|
|
|
248
352
|
### **Message Properties**
|
|
@@ -1874,6 +1978,459 @@ await msg.recordAndReply('Hier ist meine Antwort!', 2500);
|
|
|
1874
1978
|
|
|
1875
1979
|
---
|
|
1876
1980
|
|
|
1981
|
+
## 📱 Status/Story Features **EINSCHRÄNKUNG!**
|
|
1982
|
+
|
|
1983
|
+
### ⚠️ **WICHTIG: WhatsApp Web API Einschränkung**
|
|
1984
|
+
|
|
1985
|
+
**Status/Stories sind NICHT über die WhatsApp Web API verfügbar!**
|
|
1986
|
+
|
|
1987
|
+
WhatsApp erlaubt Status-Updates **nur** von echten Mobile Apps, nicht von Bot-Accounts über die Web API (die Baileys nutzt).
|
|
1988
|
+
|
|
1989
|
+
### 🚫 Nicht verfügbar:
|
|
1990
|
+
```javascript
|
|
1991
|
+
// ❌ Diese Funktionen werfen einen Fehler:
|
|
1992
|
+
await msg.sendStatus('Text') // Nicht möglich!
|
|
1993
|
+
await msg.deleteStatus(id) // Nicht möglich!
|
|
1994
|
+
await msg.getStatusViews(id) // Nicht möglich!
|
|
1995
|
+
```
|
|
1996
|
+
|
|
1997
|
+
### ✅ Alternativen:
|
|
1998
|
+
|
|
1999
|
+
**1. Broadcast-Nachrichten (Empfohlen)**
|
|
2000
|
+
```javascript
|
|
2001
|
+
// Broadcast an mehrere Kontakte
|
|
2002
|
+
const recipients = [jid1, jid2, jid3];
|
|
2003
|
+
await msg.sendBroadcast(recipients, 'Wichtige Nachricht!', {
|
|
2004
|
+
delay: 1000
|
|
2005
|
+
});
|
|
2006
|
+
```
|
|
2007
|
+
|
|
2008
|
+
**2. Gruppen-Nachrichten**
|
|
2009
|
+
```javascript
|
|
2010
|
+
// Nachricht an Gruppe senden
|
|
2011
|
+
await msg.reply('Wichtige Ankündigung für alle!');
|
|
2012
|
+
|
|
2013
|
+
// Mit Hidetag (alle werden benachrichtigt)
|
|
2014
|
+
await msg.reply('Update!', [], { hidetag: 'all' });
|
|
2015
|
+
```
|
|
2016
|
+
|
|
2017
|
+
**3. Newsletter/Channels (Beta)**
|
|
2018
|
+
```javascript
|
|
2019
|
+
// Newsletter erstellen
|
|
2020
|
+
const newsletter = await msg.createNewsletter('Updates', 'Tägliche News');
|
|
2021
|
+
|
|
2022
|
+
// An Newsletter senden
|
|
2023
|
+
await msg.sendToNewsletter(newsletter.id, {
|
|
2024
|
+
text: 'Neue Updates!'
|
|
2025
|
+
});
|
|
2026
|
+
```
|
|
2027
|
+
|
|
2028
|
+
### 📋 Warum funktioniert Status nicht?
|
|
2029
|
+
|
|
2030
|
+
**WhatsApp Web API Einschränkungen:**
|
|
2031
|
+
- ❌ Kein Zugriff auf Status/Stories
|
|
2032
|
+
- ❌ Kein Zugriff auf Calls (nur ablehnen möglich)
|
|
2033
|
+
- ❌ Eingeschränkte Business-Features
|
|
2034
|
+
- ✅ Alle Messaging-Features funktionieren
|
|
2035
|
+
- ✅ Gruppen-Management funktioniert
|
|
2036
|
+
- ✅ Media senden/empfangen funktioniert
|
|
2037
|
+
|
|
2038
|
+
**Technischer Grund:**
|
|
2039
|
+
- Baileys nutzt WhatsApp Web Protocol
|
|
2040
|
+
- WhatsApp Web hat keinen Status-Tab
|
|
2041
|
+
- Status ist nur in Mobile Apps verfügbar
|
|
2042
|
+
- WhatsApp blockiert Status-API für Bots
|
|
2043
|
+
|
|
2044
|
+
### 💡 Best Practices:
|
|
2045
|
+
|
|
2046
|
+
**Statt Status nutze:**
|
|
2047
|
+
```javascript
|
|
2048
|
+
// 1. Broadcast für wichtige Updates
|
|
2049
|
+
client.addCommand('announce', async (msg, args) => {
|
|
2050
|
+
const text = args.join(' ');
|
|
2051
|
+
const contacts = await getImportantContacts(); // Deine Kontakte
|
|
2052
|
+
|
|
2053
|
+
await msg.sendBroadcast(contacts, text, {
|
|
2054
|
+
delay: 1000 // Anti-Spam
|
|
2055
|
+
});
|
|
2056
|
+
});
|
|
2057
|
+
|
|
2058
|
+
// 2. Gruppen-Ankündigungen
|
|
2059
|
+
client.addCommand('groupannounce', async (msg, args) => {
|
|
2060
|
+
if (!msg.isGroup) return;
|
|
2061
|
+
|
|
2062
|
+
const text = args.join(' ');
|
|
2063
|
+
await msg.reply(`📢 **Ankündigung:**\n${text}`, [], {
|
|
2064
|
+
hidetag: 'all' // Alle werden benachrichtigt
|
|
2065
|
+
});
|
|
2066
|
+
});
|
|
2067
|
+
|
|
2068
|
+
// 3. Newsletter (Beta)
|
|
2069
|
+
client.addCommand('newsletter', async (msg, args) => {
|
|
2070
|
+
const text = args.join(' ');
|
|
2071
|
+
await msg.sendToNewsletter(newsletterId, { text });
|
|
2072
|
+
});
|
|
2073
|
+
```
|
|
2074
|
+
|
|
2075
|
+
---
|
|
2076
|
+
|
|
2077
|
+
## 📖 Read Receipts & Presence **NEU in v2.0.0!**
|
|
2078
|
+
|
|
2079
|
+
### **Nachrichten als gelesen markieren**
|
|
2080
|
+
```javascript
|
|
2081
|
+
// Als gelesen markieren
|
|
2082
|
+
await msg.markAsRead();
|
|
2083
|
+
|
|
2084
|
+
// Als ungelesen markieren
|
|
2085
|
+
await msg.markAsUnread();
|
|
2086
|
+
```
|
|
2087
|
+
|
|
2088
|
+
### **Online-Status & Last Seen**
|
|
2089
|
+
```javascript
|
|
2090
|
+
// Last Seen abrufen
|
|
2091
|
+
const lastSeen = await msg.getLastSeen(userJid);
|
|
2092
|
+
console.log(`Zuletzt online: ${lastSeen.lastSeen}`);
|
|
2093
|
+
console.log(`Status: ${lastSeen.status}`);
|
|
2094
|
+
|
|
2095
|
+
// Prüfen ob User online ist
|
|
2096
|
+
const isOnline = await msg.isOnline(userJid);
|
|
2097
|
+
if (isOnline) {
|
|
2098
|
+
console.log('User ist gerade online!');
|
|
2099
|
+
}
|
|
2100
|
+
```
|
|
2101
|
+
|
|
2102
|
+
---
|
|
2103
|
+
|
|
2104
|
+
## 💬 Chat Management **NEU in v2.0.0!**
|
|
2105
|
+
|
|
2106
|
+
### **Chat-Aktionen**
|
|
2107
|
+
```javascript
|
|
2108
|
+
// Chat archivieren
|
|
2109
|
+
await msg.archiveChat();
|
|
2110
|
+
|
|
2111
|
+
// Chat entarchivieren
|
|
2112
|
+
await msg.unarchiveChat();
|
|
2113
|
+
|
|
2114
|
+
// Chat muten (für 1 Stunde)
|
|
2115
|
+
await msg.muteChat(3600);
|
|
2116
|
+
|
|
2117
|
+
// Chat unmuten
|
|
2118
|
+
await msg.unmuteChat();
|
|
2119
|
+
|
|
2120
|
+
// Chat löschen
|
|
2121
|
+
await msg.deleteChat();
|
|
2122
|
+
|
|
2123
|
+
// Chat leeren
|
|
2124
|
+
await msg.clearChat();
|
|
2125
|
+
|
|
2126
|
+
// Chat pinnen
|
|
2127
|
+
await msg.pinChat();
|
|
2128
|
+
|
|
2129
|
+
// Chat entpinnen
|
|
2130
|
+
await msg.unpinChat();
|
|
2131
|
+
```
|
|
2132
|
+
|
|
2133
|
+
### **Praktische Anwendungen**
|
|
2134
|
+
```javascript
|
|
2135
|
+
client.addCommand('archive', async (msg) => {
|
|
2136
|
+
await msg.archiveChat();
|
|
2137
|
+
await msg.reply('✅ Chat archiviert!');
|
|
2138
|
+
});
|
|
2139
|
+
|
|
2140
|
+
client.addCommand('mute', async (msg, args) => {
|
|
2141
|
+
const hours = parseInt(args[0]) || 1;
|
|
2142
|
+
await msg.muteChat(hours * 3600);
|
|
2143
|
+
await msg.reply(`🔇 Chat für ${hours} Stunde(n) gemutet!`);
|
|
2144
|
+
});
|
|
2145
|
+
```
|
|
2146
|
+
|
|
2147
|
+
---
|
|
2148
|
+
|
|
2149
|
+
## 👥 Group Advanced Features **NEU in v2.0.0!**
|
|
2150
|
+
|
|
2151
|
+
### **Gruppe verlassen & Einladungen**
|
|
2152
|
+
```javascript
|
|
2153
|
+
// Gruppe verlassen
|
|
2154
|
+
await msg.leaveGroup();
|
|
2155
|
+
|
|
2156
|
+
// Invite-Code abrufen
|
|
2157
|
+
const inviteLink = await msg.getGroupInviteCode();
|
|
2158
|
+
console.log(`Einladungslink: ${inviteLink}`);
|
|
2159
|
+
|
|
2160
|
+
// Invite-Code widerrufen (neuen generieren)
|
|
2161
|
+
const newLink = await msg.revokeGroupInvite();
|
|
2162
|
+
|
|
2163
|
+
// Einladung akzeptieren
|
|
2164
|
+
await msg.acceptGroupInvite('ABC123XYZ');
|
|
2165
|
+
```
|
|
2166
|
+
|
|
2167
|
+
### **Join Requests Management**
|
|
2168
|
+
```javascript
|
|
2169
|
+
// Beitrittsanfragen abrufen
|
|
2170
|
+
const requests = await msg.getGroupJoinRequests();
|
|
2171
|
+
|
|
2172
|
+
// Anfrage genehmigen
|
|
2173
|
+
await msg.approveGroupJoinRequest(userJid);
|
|
2174
|
+
|
|
2175
|
+
// Anfrage ablehnen
|
|
2176
|
+
await msg.rejectGroupJoinRequest(userJid);
|
|
2177
|
+
```
|
|
2178
|
+
|
|
2179
|
+
### **Gruppen-Einstellungen**
|
|
2180
|
+
```javascript
|
|
2181
|
+
// Ankündigungs-Modus (nur Admins können schreiben)
|
|
2182
|
+
await msg.setGroupAnnouncement(true);
|
|
2183
|
+
|
|
2184
|
+
// Gruppe sperren (nur Admins können Gruppeninfo ändern)
|
|
2185
|
+
await msg.setGroupLocked(true);
|
|
2186
|
+
```
|
|
2187
|
+
|
|
2188
|
+
### **Praktische Commands**
|
|
2189
|
+
```javascript
|
|
2190
|
+
client.addCommand('invite', async (msg) => {
|
|
2191
|
+
if (!msg.isGroup) return msg.reply('❌ Nur in Gruppen!');
|
|
2192
|
+
if (!(await msg.isAdmin())) return msg.reply('❌ Nur für Admins!');
|
|
2193
|
+
|
|
2194
|
+
const link = await msg.getGroupInviteCode();
|
|
2195
|
+
await msg.reply(`🔗 Einladungslink:\n${link}`);
|
|
2196
|
+
});
|
|
2197
|
+
|
|
2198
|
+
client.addCommand('announce', async (msg, args) => {
|
|
2199
|
+
if (!msg.isGroup) return msg.reply('❌ Nur in Gruppen!');
|
|
2200
|
+
if (!(await msg.isAdmin())) return msg.reply('❌ Nur für Admins!');
|
|
2201
|
+
|
|
2202
|
+
const mode = args[0] === 'on';
|
|
2203
|
+
await msg.setGroupAnnouncement(mode);
|
|
2204
|
+
await msg.reply(`📢 Ankündigungs-Modus: ${mode ? 'AN' : 'AUS'}`);
|
|
2205
|
+
});
|
|
2206
|
+
```
|
|
2207
|
+
|
|
2208
|
+
---
|
|
2209
|
+
|
|
2210
|
+
## 📇 Contact Management **NEU in v2.0.0!**
|
|
2211
|
+
|
|
2212
|
+
### **Kontakt-Informationen**
|
|
2213
|
+
```javascript
|
|
2214
|
+
// Kontakt-Info abrufen
|
|
2215
|
+
const info = await msg.getContactInfo(userJid);
|
|
2216
|
+
console.log(`Existiert: ${info.exists}`);
|
|
2217
|
+
console.log(`Business: ${info.isBusiness}`);
|
|
2218
|
+
```
|
|
2219
|
+
|
|
2220
|
+
### **Blockieren & Entblocken**
|
|
2221
|
+
```javascript
|
|
2222
|
+
// Kontakt blockieren
|
|
2223
|
+
await msg.blockContact(userJid);
|
|
2224
|
+
|
|
2225
|
+
// Kontakt entblocken
|
|
2226
|
+
await msg.unblockContact(userJid);
|
|
2227
|
+
|
|
2228
|
+
// Blockliste abrufen
|
|
2229
|
+
const blocked = await msg.getBlockedContacts();
|
|
2230
|
+
console.log(`${blocked.length} blockierte Kontakte`);
|
|
2231
|
+
```
|
|
2232
|
+
|
|
2233
|
+
### **Block Commands**
|
|
2234
|
+
```javascript
|
|
2235
|
+
client.addCommand('block', async (msg) => {
|
|
2236
|
+
const mentions = msg.getMentions();
|
|
2237
|
+
if (mentions.length === 0) {
|
|
2238
|
+
return msg.reply('❌ Erwähne einen User mit @');
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
await msg.blockContact(mentions[0]);
|
|
2242
|
+
await msg.reply('🚫 User blockiert!');
|
|
2243
|
+
});
|
|
2244
|
+
|
|
2245
|
+
client.addCommand('blocklist', async (msg) => {
|
|
2246
|
+
const blocked = await msg.getBlockedContacts();
|
|
2247
|
+
if (blocked.length === 0) {
|
|
2248
|
+
return msg.reply('📋 Keine blockierten Kontakte');
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
const list = blocked.map((jid, i) => `${i+1}. ${jid}`).join('\n');
|
|
2252
|
+
await msg.reply(`🚫 Blockierte Kontakte:\n${list}`);
|
|
2253
|
+
});
|
|
2254
|
+
```
|
|
2255
|
+
|
|
2256
|
+
---
|
|
2257
|
+
|
|
2258
|
+
## 📢 Broadcast Features **NEU in v2.0.0!**
|
|
2259
|
+
|
|
2260
|
+
### **Broadcast-Nachrichten senden**
|
|
2261
|
+
```javascript
|
|
2262
|
+
// Broadcast an mehrere Kontakte
|
|
2263
|
+
const recipients = [
|
|
2264
|
+
'1234567890@s.whatsapp.net',
|
|
2265
|
+
'0987654321@s.whatsapp.net'
|
|
2266
|
+
];
|
|
2267
|
+
|
|
2268
|
+
const results = await msg.sendBroadcast(recipients, 'Wichtige Nachricht!', {
|
|
2269
|
+
delay: 1000 // 1 Sekunde Pause zwischen Nachrichten
|
|
2270
|
+
});
|
|
2271
|
+
|
|
2272
|
+
// Ergebnisse prüfen
|
|
2273
|
+
results.forEach(result => {
|
|
2274
|
+
if (result.success) {
|
|
2275
|
+
console.log(`✅ Gesendet an ${result.jid}`);
|
|
2276
|
+
} else {
|
|
2277
|
+
console.log(`❌ Fehler bei ${result.jid}: ${result.error}`);
|
|
2278
|
+
}
|
|
2279
|
+
});
|
|
2280
|
+
```
|
|
2281
|
+
|
|
2282
|
+
### **Broadcast mit Media**
|
|
2283
|
+
```javascript
|
|
2284
|
+
// Bild-Broadcast
|
|
2285
|
+
await msg.sendBroadcast(recipients, {
|
|
2286
|
+
image: { url: './photo.jpg' },
|
|
2287
|
+
caption: 'Check this out!'
|
|
2288
|
+
}, { delay: 2000 });
|
|
2289
|
+
|
|
2290
|
+
// Text-Broadcast mit Delay
|
|
2291
|
+
await msg.sendBroadcast(recipients, 'Hello everyone!', {
|
|
2292
|
+
delay: 1500 // Anti-Spam Schutz
|
|
2293
|
+
});
|
|
2294
|
+
```
|
|
2295
|
+
|
|
2296
|
+
---
|
|
2297
|
+
|
|
2298
|
+
## 📊 Media Info & Management **NEU in v2.0.0!**
|
|
2299
|
+
|
|
2300
|
+
### **Media-Informationen abrufen**
|
|
2301
|
+
```javascript
|
|
2302
|
+
// Media-Info aus Nachricht
|
|
2303
|
+
const mediaInfo = await msg.getMediaInfo();
|
|
2304
|
+
|
|
2305
|
+
if (mediaInfo) {
|
|
2306
|
+
console.log(`Typ: ${mediaInfo.type}`);
|
|
2307
|
+
console.log(`Größe: ${mediaInfo.fileSize} bytes`);
|
|
2308
|
+
console.log(`Mimetype: ${mediaInfo.mimetype}`);
|
|
2309
|
+
console.log(`Dauer: ${mediaInfo.duration} Sekunden`);
|
|
2310
|
+
console.log(`Auflösung: ${mediaInfo.width}x${mediaInfo.height}`);
|
|
2311
|
+
}
|
|
2312
|
+
```
|
|
2313
|
+
|
|
2314
|
+
### **Media-Nachrichten filtern**
|
|
2315
|
+
```javascript
|
|
2316
|
+
// Alle Media-Nachrichten
|
|
2317
|
+
const allMedia = await msg.getMediaMessages('all', 20);
|
|
2318
|
+
|
|
2319
|
+
// Nur Bilder
|
|
2320
|
+
const images = await msg.getMediaMessages('image', 10);
|
|
2321
|
+
|
|
2322
|
+
// Nur Videos
|
|
2323
|
+
const videos = await msg.getMediaMessages('video', 10);
|
|
2324
|
+
|
|
2325
|
+
// Nur Audio
|
|
2326
|
+
const audio = await msg.getMediaMessages('audio', 10);
|
|
2327
|
+
```
|
|
2328
|
+
|
|
2329
|
+
### **Nachrichten durchsuchen**
|
|
2330
|
+
```javascript
|
|
2331
|
+
// Nach Text suchen
|
|
2332
|
+
const results = await msg.searchMessages('wichtig', {
|
|
2333
|
+
limit: 10,
|
|
2334
|
+
page: 0
|
|
2335
|
+
});
|
|
2336
|
+
|
|
2337
|
+
console.log(`${results.length} Nachrichten gefunden`);
|
|
2338
|
+
```
|
|
2339
|
+
|
|
2340
|
+
---
|
|
2341
|
+
|
|
2342
|
+
## 📞 Call Features **NEU in v2.0.0!**
|
|
2343
|
+
|
|
2344
|
+
### **Anrufe ablehnen**
|
|
2345
|
+
```javascript
|
|
2346
|
+
// Anruf ablehnen
|
|
2347
|
+
client.on('call', async (call) => {
|
|
2348
|
+
console.log(`📞 Anruf von ${call.from}`);
|
|
2349
|
+
|
|
2350
|
+
await msg.rejectCall(call.id);
|
|
2351
|
+
|
|
2352
|
+
// Optional: Nachricht senden
|
|
2353
|
+
await client.socket.sendMessage(call.from, {
|
|
2354
|
+
text: '📵 Ich nehme keine Anrufe an. Bitte schreibe mir!'
|
|
2355
|
+
});
|
|
2356
|
+
});
|
|
2357
|
+
```
|
|
2358
|
+
|
|
2359
|
+
---
|
|
2360
|
+
|
|
2361
|
+
## 💼 Business Features **NEU in v2.0.0!**
|
|
2362
|
+
|
|
2363
|
+
### **Business-Profile**
|
|
2364
|
+
```javascript
|
|
2365
|
+
// Business-Profil abrufen
|
|
2366
|
+
const profile = await msg.getBusinessProfile(businessJid);
|
|
2367
|
+
|
|
2368
|
+
console.log(`Name: ${profile.name}`);
|
|
2369
|
+
console.log(`Kategorie: ${profile.category}`);
|
|
2370
|
+
console.log(`Beschreibung: ${profile.description}`);
|
|
2371
|
+
console.log(`Website: ${profile.website}`);
|
|
2372
|
+
```
|
|
2373
|
+
|
|
2374
|
+
### **Zahlungsanfragen**
|
|
2375
|
+
```javascript
|
|
2376
|
+
// Zahlungsanfrage senden
|
|
2377
|
+
await msg.sendPaymentRequest(50.00, 'EUR', 'Zahlung für Service');
|
|
2378
|
+
```
|
|
2379
|
+
|
|
2380
|
+
---
|
|
2381
|
+
|
|
2382
|
+
## 📰 Newsletter/Channel Features **NEU in v2.0.0!** (Beta)
|
|
2383
|
+
|
|
2384
|
+
### **Newsletter erstellen & verwalten**
|
|
2385
|
+
```javascript
|
|
2386
|
+
// Newsletter erstellen
|
|
2387
|
+
const newsletter = await msg.createNewsletter(
|
|
2388
|
+
'Mein Newsletter',
|
|
2389
|
+
'Tägliche Updates und News'
|
|
2390
|
+
);
|
|
2391
|
+
|
|
2392
|
+
// An Newsletter senden
|
|
2393
|
+
await msg.sendToNewsletter(newsletter.id, {
|
|
2394
|
+
text: 'Neue Updates verfügbar!'
|
|
2395
|
+
});
|
|
2396
|
+
|
|
2397
|
+
// Newsletter abonnieren
|
|
2398
|
+
await msg.subscribeNewsletter(newsletterId);
|
|
2399
|
+
|
|
2400
|
+
// Newsletter abbestellen
|
|
2401
|
+
await msg.unsubscribeNewsletter(newsletterId);
|
|
2402
|
+
```
|
|
2403
|
+
|
|
2404
|
+
---
|
|
2405
|
+
|
|
2406
|
+
## 🔧 Utility Helpers **NEU in v2.0.0!**
|
|
2407
|
+
|
|
2408
|
+
### **Nachrichten weiterleiten & kopieren**
|
|
2409
|
+
```javascript
|
|
2410
|
+
// Nachricht weiterleiten
|
|
2411
|
+
await msg.forwardTo(targetJid);
|
|
2412
|
+
|
|
2413
|
+
// Nachricht kopieren (ohne Forward-Tag)
|
|
2414
|
+
await msg.copyMessage();
|
|
2415
|
+
```
|
|
2416
|
+
|
|
2417
|
+
### **Detaillierte Message-Info**
|
|
2418
|
+
```javascript
|
|
2419
|
+
// Vollständige Message-Info
|
|
2420
|
+
const info = await msg.getMessageInfo();
|
|
2421
|
+
|
|
2422
|
+
console.log(`ID: ${info.id}`);
|
|
2423
|
+
console.log(`Von: ${info.from}`);
|
|
2424
|
+
console.log(`Sender: ${info.sender}`);
|
|
2425
|
+
console.log(`Zeit: ${info.timestamp}`);
|
|
2426
|
+
console.log(`Typ: ${info.type}`);
|
|
2427
|
+
console.log(`Weitergeleitet: ${info.isForwarded}`);
|
|
2428
|
+
console.log(`Erwähnungen: ${info.mentions.length}`);
|
|
2429
|
+
console.log(`Media: ${info.mediaInfo ? 'Ja' : 'Nein'}`);
|
|
2430
|
+
```
|
|
2431
|
+
|
|
2432
|
+
---
|
|
2433
|
+
|
|
1877
2434
|
## 🔌 Plugin System
|
|
1878
2435
|
|
|
1879
2436
|
### **Optionales Plugin System - 8 Plugins mit 80+ Commands!**
|
|
@@ -3126,42 +3683,52 @@ bot.when('check @user online').checkOnline().done(); // Online-Status von Mentio
|
|
|
3126
3683
|
|
|
3127
3684
|
---
|
|
3128
3685
|
|
|
3129
|
-
## 🔥 Feature Count: **
|
|
3686
|
+
## 🔥 Feature Count: **890+ Funktionen!** ⬆️ **NEU in v2.0.0!**
|
|
3130
3687
|
|
|
3131
|
-
- **Message Functions:**
|
|
3132
|
-
- **Group Functions:**
|
|
3688
|
+
- **Message Functions:** 25+ ⬆️ (Read Receipts, Media Info)
|
|
3689
|
+
- **Group Functions:** 18+ ⬆️ (Join Requests, Announcements, Invite Management)
|
|
3133
3690
|
- **Permission Functions:** 6+
|
|
3134
3691
|
- **Statistics Functions:** 5+
|
|
3135
3692
|
- **Typing Functions:** 8+
|
|
3136
3693
|
- **Command System:** 15+ (Chat-spezifische Prefixes)
|
|
3137
3694
|
- **Event System:** 8+
|
|
3138
3695
|
- **QR Functions:** 3+
|
|
3139
|
-
- **Utility Functions:**
|
|
3696
|
+
- **Utility Functions:** 20+ ⬆️ (Forward, Copy, Message Info)
|
|
3140
3697
|
- **Multi-Device System:** 20+
|
|
3141
3698
|
- **🆕 EasyBot System:** 25+
|
|
3142
|
-
- **🆕 Storage System:** 15+
|
|
3143
|
-
- **🆕 AI Integration:** 10+
|
|
3144
|
-
- **🆕 HTTP Client:** 12+
|
|
3145
|
-
- **🆕 Scheduler System:** 8+
|
|
3146
|
-
- **🆕 Waiting System:** 5+
|
|
3147
|
-
- **🆕 Hidetag System:** 5+
|
|
3148
|
-
- **🆕 Sticker Creation:** 8+
|
|
3149
|
-
- **🆕 Visual Recording:** 7+
|
|
3150
|
-
- **🔥 Plugin System:** 80+
|
|
3151
|
-
- **🚀 Security Manager:** 25+
|
|
3152
|
-
- **🚀 Gaming Manager:** 35+
|
|
3153
|
-
- **🚀 Database Manager:** 40+
|
|
3154
|
-
- **🚀 A/B Testing Manager:** 20+
|
|
3155
|
-
- **🚀 Reporting Manager:** 30+
|
|
3156
|
-
- **🚀 Cross-Platform Integration:** 15+
|
|
3157
|
-
- **🚀 UI Components:** 25+
|
|
3158
|
-
- **🚀 Advanced Media Features:** 35+
|
|
3159
|
-
- **🚀 Advanced Message Features:** 40+
|
|
3160
|
-
- **🚀 Rich Content Features:** 45+
|
|
3161
|
-
- **🚀 Advanced Group Features:** 25+
|
|
3162
|
-
- **🚀 Privacy & Security Features:** 30+
|
|
3163
|
-
- **🚀 Analytics & Monitoring:** 35+
|
|
3164
|
-
- **🚀 Advanced Status Features:** 20+
|
|
3699
|
+
- **🆕 Storage System:** 15+
|
|
3700
|
+
- **🆕 AI Integration:** 10+
|
|
3701
|
+
- **🆕 HTTP Client:** 12+
|
|
3702
|
+
- **🆕 Scheduler System:** 8+
|
|
3703
|
+
- **🆕 Waiting System:** 5+
|
|
3704
|
+
- **🆕 Hidetag System:** 5+
|
|
3705
|
+
- **🆕 Sticker Creation:** 8+
|
|
3706
|
+
- **🆕 Visual Recording:** 7+
|
|
3707
|
+
- **🔥 Plugin System:** 80+ **OPTIONAL LOADING!**
|
|
3708
|
+
- **🚀 Security Manager:** 25+
|
|
3709
|
+
- **🚀 Gaming Manager:** 35+
|
|
3710
|
+
- **🚀 Database Manager:** 40+
|
|
3711
|
+
- **🚀 A/B Testing Manager:** 20+
|
|
3712
|
+
- **🚀 Reporting Manager:** 30+
|
|
3713
|
+
- **🚀 Cross-Platform Integration:** 15+
|
|
3714
|
+
- **🚀 UI Components:** 25+
|
|
3715
|
+
- **🚀 Advanced Media Features:** 35+
|
|
3716
|
+
- **🚀 Advanced Message Features:** 40+
|
|
3717
|
+
- **🚀 Rich Content Features:** 45+
|
|
3718
|
+
- **🚀 Advanced Group Features:** 25+
|
|
3719
|
+
- **🚀 Privacy & Security Features:** 30+
|
|
3720
|
+
- **🚀 Analytics & Monitoring:** 35+
|
|
3721
|
+
- **🚀 Advanced Status Features:** 20+
|
|
3722
|
+
- **✨ Read Receipts & Presence:** 8+ **NEU in v2.0.0!**
|
|
3723
|
+
- **✨ Chat Management:** 12+ **NEU in v2.0.0!**
|
|
3724
|
+
- **✨ Contact Management:** 8+ **NEU in v2.0.0!**
|
|
3725
|
+
- **✨ Broadcast Features:** 5+ **NEU in v2.0.0!**
|
|
3726
|
+
- **✨ Media Search & Filter:** 6+ **NEU in v2.0.0!**
|
|
3727
|
+
- **✨ Call Features:** 3+ **NEU in v2.0.0!**
|
|
3728
|
+
- **✨ Business Features:** 5+ **NEU in v2.0.0!**
|
|
3729
|
+
- **✨ Newsletter/Channel Features:** 8+ **NEU in v2.0.0!** (Beta)
|
|
3730
|
+
|
|
3731
|
+
**Hinweis:** Status/Story Features sind aufgrund von WhatsApp Web API Einschränkungen nicht verfügbar.
|
|
3165
3732
|
- **🚀 Business Features:** 25+ (NEU in v1.7.3)
|
|
3166
3733
|
- **🚀 System Features:** 30+ (NEU in v1.7.3)
|
|
3167
3734
|
- **🚀 Profile Picture Features:** 15+ (NEU in v1.7.3)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "waengine",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "🚀 WAEngine - The most powerful WhatsApp Bot Library with
|
|
3
|
+
"version": "1.8.0",
|
|
4
|
+
"description": "🚀 WAEngine - The most powerful WhatsApp Bot Library with 860+ Working Features, Complete Baileys Integration & Production-Ready Stability",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|