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

@ -202,7 +202,14 @@ class Contact extends Base {
async getCommonGroups() {
return await this.client.getCommonGroups(this.id._serialized);
}
/**
* Gets the Contact's current status broadcast.
* @returns {Promise<Broadcast>}
*/
async getBroadcast() {
return await this.client.getBroadcastById(this.id._serialized);
}
}
module.exports = Contact;