Skip to main content
Module

x/youtubei/deno.ts>YT.Comments

A wrapper around YouTube's internal API — reverse engineering InnerTube
Very Popular
Go to Latest
class YT.Comments
import { YT } from "https://deno.land/x/youtubei@v9.3.0-deno/deno.ts";
const { Comments } = YT;

Constructors

new
Comments(
actions: Actions,
data: any,
already_parsed?,
)

Properties

contents: ObservedArray<CommentThread>
readonly
has_continuation: boolean
optional
header: CommentsHeader
readonly
page: INextResponse

Methods

applySort(sort: "TOP_COMMENTS" | "NEWEST_FIRST"): Promise<Comments>

Applies given sort option to the comments.

createComment(text: string): Promise<ApiResponse>

Creates a top-level comment.

Retrieves next batch of comments.