Comment

pydantic model Comment[source]

Comment model

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

Fields:
field user: Union[LightUser, str] [Required]

We don’t want to grab anything more than the unique_id so we can generate the lazy user getter. :autodoc-skip:

field text: str [Required]
field digg_count: int [Required]
field reply_comment_total: Optional[int] = None
field author_pin: Optional[bool] = None
field is_author_digged: bool [Required]
field comment_language: str [Required]
field id: Optional[int] = None

The Comment’s unique id

field video_id: int [Required]

The id of the Video this is commented under

property author: DeferredUserGetterAsync | DeferredUserGetterSync