plogme 1.0.4 → 1.0.5
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 +68 -0
- package/WAProto/WAProto.proto +611 -1170
- package/WAProto/index.d.ts +86878 -0
- package/WAProto/index.js +85157 -109306
- package/lib/Defaults/index.js +1 -1
- package/lib/Socket/messages-send.js +23 -0
- package/lib/Utils/messages.js +33 -0
- package/lib/Utils/process-message.js +12 -1
- package/lib/index.d.ts +21 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -490,3 +490,71 @@ Review the included license before distributing applications built with `plogme`
|
|
|
490
490
|
## Support
|
|
491
491
|
|
|
492
492
|
For implementation questions, include the Node.js version, `plogme` version, operating system, relevant error text, and a minimal reproducible example. Never include authentication state or private account data in an issue.
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
## Ported WhatsApp Web protocol features
|
|
496
|
+
|
|
497
|
+
The bundled WAProto schema is updated to WhatsApp Web version `2.3000.1047412487`, with the generated runtime, TypeScript declarations, and connection version updated together. Selected support includes newsletter follower-invite base/V2 fields, ACP2 receive-state extraction, animated wallpaper encoding, and nested audio in sticker messages. These remain experimental and client-dependent.
|
|
498
|
+
|
|
499
|
+
### Animated wallpaper
|
|
500
|
+
|
|
501
|
+
```js
|
|
502
|
+
await sock.sendMessage(jid, {
|
|
503
|
+
chatTheme: {
|
|
504
|
+
animatedWallpaper: { id: 'wallpaper-id', dimLevel: 0.25 }
|
|
505
|
+
}
|
|
506
|
+
})
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
### Sticker with audio
|
|
510
|
+
|
|
511
|
+
```js
|
|
512
|
+
await sock.sendMessage(jid, {
|
|
513
|
+
sticker: { url: './sticker.webp' },
|
|
514
|
+
stickerAudio: { url: './sound.ogg' }
|
|
515
|
+
})
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
### Newsletter follower invites
|
|
519
|
+
|
|
520
|
+
```js
|
|
521
|
+
await sock.sendMessage(jid, {
|
|
522
|
+
newsletterFollowerInvite: {
|
|
523
|
+
newsletterJid: '123456789@newsletter',
|
|
524
|
+
newsletterName: 'My newsletter',
|
|
525
|
+
caption: 'Follow this channel'
|
|
526
|
+
}
|
|
527
|
+
})
|
|
528
|
+
|
|
529
|
+
await sock.sendMessage(jid, {
|
|
530
|
+
newsletterFollowerInviteMessageV2: {
|
|
531
|
+
newsletterJid: '123456789@newsletter',
|
|
532
|
+
newsletterName: 'My newsletter',
|
|
533
|
+
caption: 'Follow this channel'
|
|
534
|
+
}
|
|
535
|
+
})
|
|
536
|
+
```
|
|
537
|
+
|
|
538
|
+
### Device-scoped relay options
|
|
539
|
+
|
|
540
|
+
`relayMessage` supports `isSecret`, `protected`, and `me` for supported private-chat device fan-out paths. These select recipients and may add `device_fanout`; they are not encryption, access-control, or delivery guarantees and may not behave identically for groups, statuses, retries, or future clients. They are unrelated to the protobuf field `messageContextInfo.messageSecret`.
|
|
541
|
+
|
|
542
|
+
```js
|
|
543
|
+
await sock.relayMessage(jid, message, {
|
|
544
|
+
messageId: messageId,
|
|
545
|
+
isSecret: true
|
|
546
|
+
})
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
### Explicit album wrapper
|
|
550
|
+
|
|
551
|
+
Albums remain parent/child wire messages: one album header is relayed first, followed by separately encrypted image/video children associated with the parent key. The receiver must group them visually. The explicit wrapper accepts typed media objects and applies a caption to the first child:
|
|
552
|
+
|
|
553
|
+
```js
|
|
554
|
+
await sock.sendAlbumMessage(jid, [
|
|
555
|
+
{ type: 'image', data: { url: './one.jpg' } },
|
|
556
|
+
{ type: 'image', data: { url: './two.jpg' } }
|
|
557
|
+
], { caption: 'Album caption' })
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
Rich HTML and bot-forwarded messages cannot be album children; send those separately. Album grouping is still dependent on WhatsApp server/client behavior.
|