innovators-bot2 1.2.2 → 1.2.4
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 +45 -3
- package/example.js +566 -482
- package/example.webp +0 -0
- package/index.js +161 -48
- package/package.json +7 -7
- package/LID_STORE_GUIDE.md +0 -333
- package/config.json +0 -6
package/README.md
CHANGED
|
@@ -102,7 +102,43 @@ await client.sendDocument('1234567890@s.whatsapp.net', './document.pdf',
|
|
|
102
102
|
)
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
### 3.
|
|
105
|
+
### 3. Sticker Management
|
|
106
|
+
|
|
107
|
+
Create stickers easily from any image buffer with automatic conversion and metadata support.
|
|
108
|
+
|
|
109
|
+
```javascript
|
|
110
|
+
const fs = require('fs');
|
|
111
|
+
|
|
112
|
+
// Send a sticker from an image or video buffer
|
|
113
|
+
const buffer = fs.readFileSync('./image.jpg');
|
|
114
|
+
await client.sendSticker('1234567890@s.whatsapp.net', buffer, {
|
|
115
|
+
packName: 'Innovators',
|
|
116
|
+
author: 'Innovators Bot',
|
|
117
|
+
type: 'full', // 'full' or 'crop'
|
|
118
|
+
quality: 50
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### 4. Anti-Delete System
|
|
123
|
+
|
|
124
|
+
The library includes a built-in Anti-Delete system that tracks deleted messages in real-time.
|
|
125
|
+
|
|
126
|
+
```javascript
|
|
127
|
+
// Listen for deleted messages
|
|
128
|
+
client.on('message-deleted', async (data) => {
|
|
129
|
+
console.log(`User ${data.jid} deleted a message!`);
|
|
130
|
+
|
|
131
|
+
// Content of the deleted message
|
|
132
|
+
const original = data.originalMessage;
|
|
133
|
+
|
|
134
|
+
// Reply to the chat with the deleted content
|
|
135
|
+
await client.sendMessage(data.jid, 'I saw that! 😉', {
|
|
136
|
+
quoted: original
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### 5. Group Management
|
|
106
142
|
|
|
107
143
|
```javascript
|
|
108
144
|
// Get all groups
|
|
@@ -235,11 +271,17 @@ The library includes example bot commands that you can use:
|
|
|
235
271
|
- `!list` - Display a scrollable list
|
|
236
272
|
- `!logout` - Logout from current session
|
|
237
273
|
|
|
238
|
-
###
|
|
274
|
+
### 🛡️ Protection
|
|
275
|
+
- `Anti-Delete` - Automatically tracks and emits events for deleted messages
|
|
276
|
+
|
|
277
|
+
### 🔐 JID & LID/PN Management (v7.x.x)
|
|
239
278
|
- `!lid` - Get your LID (Local Identifier)
|
|
240
279
|
- `!pn <lid>` - Get phone number from a LID
|
|
280
|
+
- `!parse <jid>` - Parse detailed JID information
|
|
281
|
+
- `!normalize <number>` - Normalize a number to JID format
|
|
241
282
|
|
|
242
|
-
|
|
283
|
+
### 🎨 Sticker Commands
|
|
284
|
+
- `!sticker` - Create a sticker from an image
|
|
243
285
|
|
|
244
286
|
### Connection Events
|
|
245
287
|
```javascript
|