feat+fix: send vote messages & vote update event (#3913)

* add send vote function

* Update index.d.ts

* fix and add required modules

* fix poll update in group chat

* adjustments to improvements

* add example usages

* fix eslint

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
RendyCraft047 2025-11-10 02:37:51 +07:00 • committed by GitHub
commit 0c36613cc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 51 additions and 11 deletions

4
index.d.ts vendored
View file

@ -1210,6 +1210,10 @@ declare namespace WAWebJS {
* Once the event is canceled, it can not be edited.
*/
editScheduledEvent: (editedEventObject: Event) => Promise<Message | null>,
/**
* Send votes to the poll message
*/
vote: (selectedOptions: Array<string>) => Promise<void>,
}
/** ID that represents a message */