TLComment

See source code
Table of contents

Extends BaseRecord<'comment', TLCommentId>.

A single comment message within a thread. See TLCommentThread for the overall model and sync/registration notes.

Comment mutations are deliberately not undoable — create/edit them with { history: 'ignore' } to avoid multiplayer surprises like a comment reappearing after someone else deleted it.

interface TLComment extends BaseRecord<"comment", TLCommentId> {}

Properties

authorId

See TLCommentThread.createdBy — same server-stamping caveat applies.

authorId: string;

body

Rich text body. Use toRichText(...) for plaintext input.

body: TLRichText;

createdAt

createdAt: number;

editedAt

Null until the comment is first edited.

editedAt: null | number;

id

readonly
readonly id: Id;

isDeleted

Whether the comment is soft-deleted. Same model as TLCommentThread.isDeleted.

isDeleted: boolean;

meta

meta: JsonObject;

pageId

Denormalized from the thread so per-page queries don't need a join.

pageId: TLPageId;

threadId

The thread this comment belongs to.

threadId: TLCommentThreadId;

typeName

readonly
readonly typeName: TypeName;

Prev
TLCamera
Next
TLCommentReaction