API
chats
Sendmessage

ryft.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.

Uses LIT for encryption

Usage

let res = await ryft.sendMessage({
  conversation_id: "cjzl6cwe1...x6iqjwvcb",
  body: "hello"
});

Parameters

KeyDescription
conversation_idThe DiD of the conversation
bodyThe text to send as message

Returns

{
  status: 200,
  doc: "cjzl6cwe1...x6iqjwvcb",
  result: "Success creating message"
}