vaegram 0.2.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 super::create_folder_invite_link::chatlist;

impl Client {
    /// Hides the new chats of a shared folder that [`Client::get_folder_updates`] lists.
    pub async fn hide_folder_updates(&self, folder_id: i32) -> Result<()> {
        self.invoke(&functions::chatlists::HideChatlistUpdates { chatlist: chatlist(folder_id) }).await?;
        Ok(())
    }
}