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
use crate::Client;
use crate::errors::Result;
use crate::types::PeerRef;

impl Client {
    /// Moves chats from the archive back to the main chat list.
    ///
    /// Fails with `Error::InvalidArgument` if `chat_ids` is empty.
    pub async fn unarchive_chats(&self, chat_ids: impl IntoIterator<Item = impl Into<PeerRef>>) -> Result<()> {
        self.move_to_folder(chat_ids.into_iter().map(Into::into).collect(), 0).await
    }
}