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 {
    /// Bans a channel from sending messages in a chat as itself.
    ///
    /// Same as [`Client::ban_chat_member`] with no expiry.
    pub async fn ban_chat_sender_chat(
        &self,
        chat_id: impl Into<PeerRef>,
        sender_chat_id: impl Into<PeerRef>,
    ) -> Result<()> {
        self.ban_chat_member(chat_id, sender_chat_id).await
    }
}