CommentEvent.
Signature
Section titled “Signature”class CommentEvent(BaseEvent, WebcastChatMessage)Attributes
Section titled “Attributes”common(Optional[CommonMessageData])content(str)visible_to_sender(bool)background_image(Optional[ImageModel])full_screen_text_color(str)background_image_v2(Optional[ImageModel])public_area_common(Optional[PublicAreaCommon])gift_image(Optional[ImageModel])input_type(int)emotes(List[EmoteWithIndex])content_language(str)msg_filter(Optional[MsgFilter])quick_chat_scene(int)community_flagged_status(int)user_identity(Optional[UserIdentity])comment_quality_scores(List[CommentQualityScore])comment_tag(List[CommentTag])public_area_message_common(Optional[PublicAreaMessageCommon])screen_time(int)signature(str)signature_version(str)ec_streamer_key(str)comment_label_scores(List[CommentLabelScore])mention_user_list(List[int])mention_users(List[User])is_on_comment_tray(bool)user(Optional[ExtendedUser])at_user(Optional[ExtendedUser])user_is_super_fan(property,bool) — Return whether the user is a TikTok super fan.comment(property,str) — Legacy alias; v2 named thiscomment, v3 renamed it tocontent.
Import
Section titled “Import”from TikTokLive.events import CommentEvent