Skip to main content

ronami_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;
6use crate::types::True;
7use crate::types::UserId;
8
9impl_payload! {
10    /// 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.
11    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12    pub DeclineChatJoinRequest (DeclineChatJoinRequestSetters) => True {
13        required {
14            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
15            pub chat_id: Recipient [into],
16            /// Unique identifier of the target user
17            pub user_id: UserId,
18        }
19    }
20}