From 58fc39f97d5663f7651faff4c60c12f2e91ce63e Mon Sep 17 00:00:00 2001 From: alechkos <93551621+alechkos@users.noreply.github.com> Date: Sun, 26 Nov 2023 23:00:30 +0200 Subject: [PATCH] [BUG] fixed poll docs (#2652) --- index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 {