@imput/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube. Fork of youtubei.js
23 lines (22 loc) • 777 B
TypeScript
import { YTNode } from '../helpers.js';
import type { RawNode } from '../index.js';
import NavigationEndpoint from './NavigationEndpoint.js';
import Text from './misc/Text.js';
import Thumbnail from './misc/Thumbnail.js';
export default class Poll extends YTNode {
static type: string;
choices: {
text: Text;
select_endpoint: NavigationEndpoint | null;
deselect_endpoint: NavigationEndpoint | null;
vote_ratio_if_selected: number | null;
vote_percentage_if_selected: Text;
vote_ratio_if_not_selected: number | null;
vote_percentage_if_not_selected: Text;
image: Thumbnail[] | null;
}[];
poll_type?: string;
total_votes?: Text;
live_chat_poll_id?: string;
constructor(data: RawNode);
}