SDK Reference
Methods
UpdateMessage

updateMessage

Update an existing message of a conversation.

Message contents will be automatically encrypted using Lit Protocol based on the conversation's recipients.

How to use?

const res = await orbis.updateMessage(stream_id, content, data);

Parameters

  • stream_id - Ceramic stream id of the message you want to edit
  • content - object which contains details of the message being sent
    • conversation_id - string (stream) ID of the conversation to which a message will be sent
    • body - string content of the message being sent
  • data - object which contains custom data to be attached to the message

Returns

{
  status: 200,
  doc: "kjzl6cwe1...e4wvxhiqj",
  result: "Success creating TileDocument."
}