[BUG] fixed poll docs (#2652)
This commit is contained in:
parent
7ff9c9807b
commit
58fc39f97d
1 changed files with 5 additions and 3 deletions
8
index.d.ts
vendored
8
index.d.ts
vendored
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue