@crysnovax/baileys 2.5.6 → 2.6.1
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 +11 -0
- package/README.md[old] +1612 -0
- package/WAProto/index.js +14789 -3578
- package/lib/Defaults/index.js +14 -7
- package/lib/Signal/libsignal.js +40 -18
- package/lib/Socket/business.js +2 -1
- package/lib/Socket/chats.js +266 -92
- package/lib/Socket/chats.js[past] +1213 -0
- package/lib/Socket/communities.js +2 -1
- package/lib/Socket/groups.js +24 -5
- package/lib/Socket/messages-recv.js +617 -322
- package/lib/Socket/messages-send.js +160 -61
- package/lib/Socket/newsletter.js +4 -4
- package/lib/Socket/socket.js +49 -20
- package/lib/Types/{Newsletter.js → Mex.js} +10 -4
- package/lib/Types/State.js +37 -1
- package/lib/Types/index.js +1 -1
- package/lib/Utils/auth-utils.js +13 -1
- package/lib/Utils/chat-utils.js +81 -21
- package/lib/Utils/decode-wa-message.js +35 -1
- package/lib/Utils/index.js +1 -0
- package/lib/Utils/messages-media.js +28 -16
- package/lib/Utils/messages-media.js[past] +842 -0
- package/lib/Utils/messages.js +325 -352
- package/lib/Utils/signal.js +43 -1
- package/lib/Utils/tc-token-utils.js +150 -5
- package/lib/Utils/use-sqlite-auth-state.js +108 -0
- package/lib/WABinary/constants.js +91 -0
- package/package.json +45 -10
package/README.md
CHANGED
|
@@ -118,6 +118,7 @@ const crysnova = {
|
|
|
118
118
|
| Image Processing | ✅ | Auto-detects `sharp`, `@napi-rs/image`, or `jimp` |
|
|
119
119
|
| Safe FFmpeg | ✅ | Uses `spawn` instead of `exec` |
|
|
120
120
|
| In-Memory Store | ✅ | Reintroduced with minimal ESM adaptation |
|
|
121
|
+
| HD Profile Picture | 🆕 | Full-size upload with no crop or resize via `{ hd: true }` |
|
|
121
122
|
|
|
122
123
|
---
|
|
123
124
|
|
|
@@ -1335,8 +1336,18 @@ const community = await sock.communityGetInviteInfo('ABC123456789')
|
|
|
1335
1336
|
```javascript
|
|
1336
1337
|
// Profile picture
|
|
1337
1338
|
const url = await sock.profilePictureUrl(jid, 'image')
|
|
1339
|
+
|
|
1340
|
+
// Standard — auto crop + resize to 720×720
|
|
1338
1341
|
sock.updateProfilePicture(jid, buffer)
|
|
1339
1342
|
sock.updateProfilePicture(jid, { url })
|
|
1343
|
+
|
|
1344
|
+
// Standard with custom dimensions
|
|
1345
|
+
sock.updateProfilePicture(jid, { url }, { width: 640, height: 640 })
|
|
1346
|
+
|
|
1347
|
+
// 🆕 HD — full resolution, no crop, no resize
|
|
1348
|
+
sock.updateProfilePicture(jid, buffer, { hd: true })
|
|
1349
|
+
sock.updateProfilePicture(jid, { url }, { hd: true })
|
|
1350
|
+
|
|
1340
1351
|
sock.removeProfilePicture(jid)
|
|
1341
1352
|
|
|
1342
1353
|
// Profile info
|