teloxide_core/payloads/
decline_chat_join_request.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{Recipient, True, UserId};
6
7impl_payload! {
8    /// Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the _can_invite_users_ administrator right. Returns _True_ on success.
9    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10    pub DeclineChatJoinRequest (DeclineChatJoinRequestSetters) => True {
11        required {
12            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
13            pub chat_id: Recipient [into],
14            /// Unique identifier of the target user
15            pub user_id: UserId,
16        }
17    }
18}