lilgabriel-baileys 2.5.9 → 2.5.10
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 +5 -12
- package/lib/Utils/generics.js +3 -3
- package/package.json +1 -1
- package/test.js +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1>
|
|
2
|
+
<h1>Lilgabriel-Baileys</h1>
|
|
3
3
|
<p>A WebSocket-based JavaScript library for interacting with the WhatsApp Web API</p>
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/lilgabriel-baileys)
|
|
6
|
+
[](https://www.npmjs.com/package/lilgabriel-baileys)
|
|
7
|
+
[](https://github.com/LilGabrielDev/lilgabriel-baileys/blob/main/LICENSE)
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
10
|
## Disclaimer
|
|
@@ -46,11 +46,4 @@ const { default: makeWASocket, useMultiFileAuthState, Browsers } = pkg
|
|
|
46
46
|
- Group management
|
|
47
47
|
- Privacy settings
|
|
48
48
|
- Profile management
|
|
49
|
-
- And much more!
|
|
50
|
-
|
|
51
|
-
> **Note:** For sending buttons, please use the [gifted-btns](https://npmjs.com/package/gifted-btns) package.
|
|
52
|
-
|
|
53
|
-
## Documentation
|
|
54
|
-
|
|
55
|
-
Full documentation is available at [baileys.giftedtech.co.ke](https://baileys.giftedtech.co.ke)
|
|
56
|
-
|
|
49
|
+
- And much more!
|
package/lib/Utils/generics.js
CHANGED
|
@@ -175,11 +175,11 @@ const generateMessageIDV2 = (userId) => {
|
|
|
175
175
|
const random = (0, crypto_1.randomBytes)(16);
|
|
176
176
|
random.copy(data, 28);
|
|
177
177
|
const hash = (0, crypto_1.createHash)('sha256').update(data).digest();
|
|
178
|
-
return '
|
|
178
|
+
return 'LILGABRIEL-' + hash.toString('hex').toUpperCase().substring(0, 18);
|
|
179
179
|
};
|
|
180
180
|
exports.generateMessageIDV2 = generateMessageIDV2;
|
|
181
181
|
// generate a random ID to attach to a message
|
|
182
|
-
const generateMessageID = () => '
|
|
182
|
+
const generateMessageID = () => 'LILGABRIEL-' + (0, crypto_1.randomBytes)(18).toString('hex').toUpperCase();
|
|
183
183
|
exports.generateMessageID = generateMessageID;
|
|
184
184
|
function bindWaitForEvent(ev, event) {
|
|
185
185
|
return async (check, timeoutMs) => {
|
|
@@ -211,7 +211,7 @@ exports.bindWaitForConnectionUpdate = bindWaitForConnectionUpdate;
|
|
|
211
211
|
* Use to ensure your WA connection is always on the latest version
|
|
212
212
|
*/
|
|
213
213
|
const fetchLatestBaileysVersion = async (options = {}) => {
|
|
214
|
-
const URL = 'https://raw.githubusercontent.com/
|
|
214
|
+
const URL = 'https://raw.githubusercontent.com/LilGabrielDev/lilgabriel-baileys/main/lib/Defaults/baileys-version.json';
|
|
215
215
|
try {
|
|
216
216
|
const result = await axios_1.default.get(URL, {
|
|
217
217
|
...options,
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const baileys = require('./lib/index.js');
|
|
2
2
|
|
|
3
|
-
console.log('===
|
|
3
|
+
console.log('=== lilgabriel-baileys Library Test ===\n');
|
|
4
4
|
console.log('Library loaded successfully!');
|
|
5
5
|
console.log('\nAvailable exports:');
|
|
6
6
|
console.log(Object.keys(baileys).join('\n'));
|