1 2 3 4 5 6 7 8 9 10
use crate::Client; use crate::errors::Result; use crate::types::PeerRef; impl Client { /// Unpins a chat from the top of your chat list. pub async fn unpin_chat(&self, chat_id: impl Into<PeerRef>) -> Result<()> { self.toggle_dialog_pin(chat_id, false).await } }