Skip to main content

appendMessage

chat.appendMessage({ id: TID, content: "string" });

Appends additional text to an existing message in the chat interface. The method receives an object with two properties: id and content.

Known Properties

  • id: Identifier of the existing message to which the content will be appended.
  • content: String containing the text to append to the message.

Use-Case: Append Text to an Existing Message

chat.appendMessage({ id: "message123", content: " This is additional text." });

This example appends " This is additional text." to the existing message with the ID "message123".