Spaces:
Running
Running
Update chatbot/plugins/autobanch.py
Browse files
chatbot/plugins/autobanch.py
CHANGED
@@ -84,7 +84,7 @@ async def left_ch(client: Client, message: Message):
|
|
84 |
]
|
85 |
]
|
86 |
)
|
87 |
-
text_ban = f"User {
|
88 |
try:
|
89 |
await client.ban_chat_member(
|
90 |
chat_id,
|
|
|
84 |
]
|
85 |
]
|
86 |
)
|
87 |
+
text_ban = f"User {from_user_name} (ID: {user_id}) was banned from {message.chat.title}."
|
88 |
try:
|
89 |
await client.ban_chat_member(
|
90 |
chat_id,
|