TikTokApi.api.comment module

class TikTokApi.api.comment.Comment(data: dict | None = None)[source]

Bases: object

A TikTok Comment.

Example Usage
for comment in video.comments:
    print(comment.text)
    print(comment.as_dict)
as_dict: dict

The raw data associated with this comment

author: ClassVar[User]

The author of the comment

id: str

The id of the comment

likes_count: int

The amount of likes of the comment

parent: ClassVar[TikTokApi]
async replies(count=20, cursor=0, **kwargs) Iterator[Comment][source]
text: str

The contents of the comment