ronami_core/payloads/unban_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 unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights.
11 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12 pub UnbanChatSenderChat (UnbanChatSenderChatSetters) => 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}