Captain Ezio commited on
Commit
52b4b94
·
1 Parent(s): 1036b06

Update locks.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/locks.py +1 -1
Powers/plugins/locks.py CHANGED
@@ -491,7 +491,7 @@ async def lock_del_mess(c:Gojo, m: Message):
491
  if m.chat.id not in all_chats:
492
  return
493
  if m.sender_chat and not (m.forward_from_chat or m.forward_from):
494
- if m.sender_chat == m.chat.id:
495
  return
496
  await delete_messages(c,m)
497
  return
 
491
  if m.chat.id not in all_chats:
492
  return
493
  if m.sender_chat and not (m.forward_from_chat or m.forward_from):
494
+ if m.sender_chat.id == m.chat.id:
495
  return
496
  await delete_messages(c,m)
497
  return