[][src]Trait keybase_bot_api::chat::Chat

pub trait Chat {
    fn send_msg<'a>(
        &self,
        channel: &'a ChannelParams,
        msg: &'a str
    ) -> Result<SendRes, ApiError>;
fn listen(
        &mut self
    ) -> Result<Receiver<Result<Notification, ApiError>>, ApiError>;
fn list(&self) -> Result<ListResult, ApiError>;
fn read_conv(&self, channel: &ChannelParams) -> Result<Thread, ApiError>; }

Required methods

fn send_msg<'a>(
    &self,
    channel: &'a ChannelParams,
    msg: &'a str
) -> Result<SendRes, ApiError>

fn listen(
    &mut self
) -> Result<Receiver<Result<Notification, ApiError>>, ApiError>

fn list(&self) -> Result<ListResult, ApiError>

fn read_conv(&self, channel: &ChannelParams) -> Result<Thread, ApiError>

Loading content...

Implementors

impl Chat for Bot[src]

Loading content...