Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
d7e8ca1
1
Parent(s):
4e73a66
tried to fix
Browse files
Powers/utils/custom_filters.py
CHANGED
|
@@ -27,10 +27,10 @@ def command(
|
|
| 27 |
if not m:
|
| 28 |
return
|
| 29 |
|
| 30 |
-
if m
|
| 31 |
return # reaction
|
| 32 |
|
| 33 |
-
if m
|
| 34 |
return
|
| 35 |
|
| 36 |
if not m.from_user:
|
|
@@ -75,7 +75,7 @@ def command(
|
|
| 75 |
except ValueError:
|
| 76 |
# i.e. PM
|
| 77 |
user_status = "creator"
|
| 78 |
-
ddb = Disabling(m
|
| 79 |
if str(matches.group(1)) in ddb.get_disabled() and user_status not in (
|
| 80 |
"creator",
|
| 81 |
"administrator",
|
|
|
|
| 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:
|
|
|
|
| 75 |
except ValueError:
|
| 76 |
# i.e. PM
|
| 77 |
user_status = "creator"
|
| 78 |
+
ddb = Disabling(m.get("chat").get("id"))
|
| 79 |
if str(matches.group(1)) in ddb.get_disabled() and user_status not in (
|
| 80 |
"creator",
|
| 81 |
"administrator",
|