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

impl Client {
    /// Declines the pending request of `user_id` to join the chat.
    pub async fn decline_chat_join_request(
        &self,
        chat_id: impl Into<PeerRef>,
        user_id: impl Into<PeerRef>,
    ) -> Result<()> {
        self.hide_chat_join_request(chat_id.into(), user_id.into(), false).await
    }
}