feat: whatsapp stories implementation (#3994)

* support sending message from status broadcast

* add to index.d.ts

* add method to contact

* new modules

* Update Utils.js

* add for the examples

* add color assertion function

* finishing..

* added waveforms for audio messages and minor fixes

* fix eslint

* refactor

reorganize the store to include additional modules.

* adapt

* the last one.

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
RendyCraft047 2025-12-13 11:34:55 +07:00 • committed by GitHub
commit 6aa1bd85ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 152 additions and 12 deletions

View file

@ -523,6 +523,13 @@ client.on('message', async msg => {
// NOTE: this action will take effect after you restart the client.
const backgroundSync = await client.setBackgroundSync(true);
console.log(backgroundSync);
} else if (msg.body === '!postStatus') {
await client.sendMessage('status@broadcast', 'Hello there!');
// send with a different style
await client.sendMessage('status@broadcast', 'Hello again! Looks different?', {
fontStyle: 1,
backgroundColor: '#0b3296'
});
}
});