Skip to main content

onebot_api/
quick_operation.rs

1use crate::api::APISender;
2use crate::error::APIResult;
3use crate::message::send_segment::SendSegment;
4use async_trait::async_trait;
5
6#[async_trait]
7pub trait QuickSendMsg<T: APISender + Sync + Send> {
8	async fn send_msg(
9		&self,
10		api: &T,
11		msg: Vec<SendSegment>,
12		auto_escape: Option<bool>,
13	) -> APIResult<i32>;
14}