vaegram 0.3.0

Telegram MTProto client library for users and bots
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::Client;
use crate::errors::Result;
use crate::raw::functions;
use crate::types::PeerRef;

impl Client {
    /// Moves a chat's stories back from the hidden list to the main one.
    pub async fn show_chat_stories(&self, chat_id: impl Into<PeerRef>) -> Result<()> {
        let peer = self.resolve_peer(chat_id).await?;
        self.invoke(&functions::stories::TogglePeerStoriesHidden { peer, hidden: false }).await?;
        Ok(())
    }
}