Skip to main content

ronami_core/payloads/
ban_chat_sender_chat.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::ChatId;
6use crate::types::Recipient;
7use crate::types::True;
8
9impl_payload! {
10    /// Use this method to ban a channel chat in a supergroup or a channel. The owner of the chat will not be able to send messages and join live streams on behalf of the chat, unless it is unbanned first. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights.
11    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12    pub BanChatSenderChat (BanChatSenderChatSetters) => 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 sender chat
17            pub sender_chat_id: ChatId [into],
18        }
19    }
20}