Captain Ezio commited on
Commit
d61d160
·
1 Parent(s): 545a638

Update custom_filters.py

Browse files
Files changed (1) hide show
  1. Powers/utils/custom_filters.py +2 -2
Powers/utils/custom_filters.py CHANGED
@@ -27,10 +27,10 @@ def command(
27
  if not m:
28
  return
29
 
30
- if m.get("edit_date"):
31
  return # reaction
32
 
33
- if m.get("chat") and m.get("chat").get("type") == "channel":
34
  return
35
 
36
  if not m.from_user:
 
27
  if not m:
28
  return
29
 
30
+ if m.edit_date:
31
  return # reaction
32
 
33
+ if m.chat and m.chat.type == "channel":
34
  return
35
 
36
  if not m.from_user: