diff --git a/index.d.ts b/index.d.ts index a06a66d..57f312a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -985,13 +985,15 @@ declare namespace WAWebJS { } /** Represents a Poll on WhatsApp */ - export interface Poll { - pollName: string, + export class Poll { + pollName: string pollOptions: Array<{ name: string, localId: number - }>, + }> options: PollSendOptions + + constructor(pollName: string, pollOptions: Array, options?: PollSendOptions) } export interface Label {