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 friend_poke(&self, user_id: i64) -> Result<()> { self.websocket_send( "friend_poke", serde_json::json!({ "user_id": user_id, }), ) .await?; Ok(()) } }