Skip to main content

AsyncChatbotHandler

Trait AsyncChatbotHandler 

Source
pub trait AsyncChatbotHandler:
    Send
    + Sync
    + 'static {
    // Required method
    fn process(&self, callback_message: &MessageBody);

    // Provided method
    fn pre_start(&self) { ... }
}
Expand description

异步聊天机器人处理器(立即 ACK + 后台处理)

Required Methods§

Source

fn process(&self, callback_message: &MessageBody)

用户实现此方法处理消息(非 async)

Provided Methods§

Source

fn pre_start(&self)

启动前的初始化

Implementors§