[BUG] fixed poll docs (#2652)

This commit is contained in:
alechkos 2023-11-26 23:00:30 +02:00 • committed by GitHub
commit 58fc39f97d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

8
index.d.ts vendored
View file

@ -985,13 +985,15 @@ declare namespace WAWebJS {
} }
/** Represents a Poll on WhatsApp */ /** Represents a Poll on WhatsApp */
export interface Poll { export class Poll {
pollName: string, pollName: string
pollOptions: Array<{ pollOptions: Array<{
name: string, name: string,
localId: number localId: number
}>, }>
options: PollSendOptions options: PollSendOptions
constructor(pollName: string, pollOptions: Array<string>, options?: PollSendOptions)
} }
export interface Label { export interface Label {