runbot 0.1.9

QQ client framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::error::Result;
use crate::prelude::BotContext;

impl BotContext {
    pub async fn mark_msg_as_read(&self, message_id: i64) -> Result<()> {
        self.websocket_send(
            "mark_msg_as_read",
            serde_json::json!({
                "message_id": message_id,
            }),
        )
        .await?;
        Ok(())
    }
}