ban_chat_sender_chat
Use this method to ban a channel chat in a supergroup or a channel.
Parameters
chat_id
(int
orstr
): Unique identifier for the target chat or username of the target channel (in the format @channelusername)sender_chat_id
(int
): Unique identifier of the target sender chat
Returns
bool
Examples
- Required Parameters
await bot.ban_chat_sender_chat(
chat_id=your_chat_id_here,
sender_chat_id=your_sender_chat_id_here
)