createComment

See source code

Create a new comment record within a thread.

function createComment(props: {
  authorId: string;
  body: TLRichText;
  meta?: JsonObject;
  now?: number;
  pageId: TLPageId;
  threadId: TLCommentThreadId;
}): TLComment;

Parameters

NameDescription

props

{
  authorId: string;
  body: TLRichText;
  meta?: JsonObject;
  now?: number;
  pageId: TLPageId;
  threadId: TLCommentThreadId;
};

Returns

Prev
createCachedUserResolve
Next
createCommentId