botx-api-framework 0.1.8

Фреймворк для реализации ботов под платформу eXpress
Documentation
1
2
3
4
5
6
7
8
use botx_api::{api::result::ExpressResult, bot::models::{NotificationCallbackRequestError, NotificationCallbackRequestOk}};

use crate::{contexts::RequestContext, results::CommandResult};

#[async_trait_with_sync::async_trait]
pub trait INotificationResultHandler: Send + Sync {
    async fn handle(&mut self, result: ExpressResult<NotificationCallbackRequestOk, NotificationCallbackRequestError>);
}