randydev commited on
Commit
a20cb50
·
verified ·
1 Parent(s): 517fe3a

Update chatbot/plugins/autobanch.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/autobanch.py +1 -1
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 {user_first_name} (ID: {user_id}) was banned from {message.chat.title}."
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,