orbis.sendMessage()

Will send a message to a specific conversation. The message sent will be automatically encrypted using Lit Protocol based on the conversation's recipients.

How to use?

let res = await orbis.sendMessage({
  conversation_id: "kjzl6cwe1...e4wvxhiqj",
  body: "gm"
});

Parameters

  • content: JSON object that contains the details of the message being sent
  • conversation_id: string ID of the conversation in which this message will be sent
  • body: string Content of the message sent

Returns

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