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
Key | Description |
---|---|
conversation_id | The DiD of the conversation |
body | The text to send as message |
Returns
{
status: 200,
doc: "cjzl6cwe1...x6iqjwvcb",
result: "Success creating message"
}