teloxide_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, Recipient, True};
6
7impl_payload! {
8 /// 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.
9 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10 pub UnbanChatSenderChat (UnbanChatSenderChatSetters) => 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 sender chat
15 pub sender_chat_id: ChatId [into],
16 }
17 }
18}