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
use super::edit_forum_topic::GENERAL_TOPIC_ID;

use crate::Client;
use crate::errors::Result;
use crate::types::PeerRef;

impl Client {
    /// Unpins every pinned message in the General topic of a forum.
    pub async fn unpin_all_general_forum_topic_messages(&self, chat_id: impl Into<PeerRef>) -> Result<()> {
        self.unpin_all_forum_topic_messages(chat_id, GENERAL_TOPIC_ID).await
    }
}