youtubei
Version:
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
34 lines (33 loc) • 913 B
TypeScript
import { YoutubeRawData } from "../../common";
import { Base, BaseProperties } from "../Base";
import { BaseChannel } from "../BaseChannel";
import { Video } from "../Video";
/** @hidden */
interface ChatProperties extends BaseProperties {
id?: string;
video?: Video;
author?: BaseChannel;
message?: string;
timestamp?: number;
}
/** Represents a chat in a live stream */
export declare class Chat extends Base implements ChatProperties {
id?: string;
/** The video this chat belongs to */
video: Video;
/** The chat's author */
author: BaseChannel;
/** The message of this chat */
message: string;
/** Timestamp in usec / microsecond */
timestamp: number;
/** @hidden */
constructor(attr: ChatProperties);
/**
* Load this instance with raw data from Youtube
*
* @hidden
*/
load(data: YoutubeRawData): Chat;
}
export {};