UNPKG

@imput/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube. Fork of youtubei.js

14 lines 501 B
import { YTNode } from '../helpers.js'; import { Parser } from '../index.js'; import Button from './Button.js'; import Text from './misc/Text.js'; class LiveChatDialog extends YTNode { constructor(data) { super(); this.confirm_button = Parser.parseItem(data.confirmButton, Button); this.dialog_messages = data.dialogMessages.map((el) => new Text(el)); } } LiveChatDialog.type = 'LiveChatDialog'; export default LiveChatDialog; //# sourceMappingURL=LiveChatDialog.js.map