Skip to main content

send_message

Function send_message 

Source
pub async fn send_message<T: Transport + ?Sized>(
    transport: &T,
    community: &Community,
    channel: &Channel,
    author: &Keys,
    content: &str,
    ms: u64,
) -> Result<Event, String>
Expand description

Publish a Community message and retain its ephemeral key in the account DB so the sender can delete it later. Returns the published outer event.