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

impl Client {
    /// Lets a banned channel post in a chat as itself again.
    ///
    /// Calls [`Client::unban_chat_member`] with the channel as the member.
    pub async fn unban_chat_sender_chat(
        &self,
        chat_id: impl Into<PeerRef>,
        sender_chat_id: impl Into<PeerRef>,
    ) -> Result<()> {
        self.unban_chat_member(chat_id, sender_chat_id).await
    }
}