Spaces:
Paused
Paused
iamgojoof6eyes
commited on
Commit
·
4bfd962
1
Parent(s):
79472bd
Minor fixes
Browse files
Powers/utils/custom_filters.py
CHANGED
|
@@ -6,6 +6,8 @@ from typing import List, Union
|
|
| 6 |
from pyrogram.errors import RPCError, UserNotParticipant
|
| 7 |
from pyrogram.filters import create
|
| 8 |
from pyrogram.types import CallbackQuery, Message
|
|
|
|
|
|
|
| 9 |
|
| 10 |
from Powers import DEV_USERS, OWNER_ID, SUDO_USERS
|
| 11 |
from Powers.database.disable_db import Disabling
|
|
@@ -27,10 +29,12 @@ def command(
|
|
| 27 |
if not m:
|
| 28 |
return
|
| 29 |
|
| 30 |
-
|
|
|
|
| 31 |
return # reaction
|
| 32 |
|
| 33 |
-
|
|
|
|
| 34 |
return
|
| 35 |
|
| 36 |
if not m.from_user:
|
|
|
|
| 6 |
from pyrogram.errors import RPCError, UserNotParticipant
|
| 7 |
from pyrogram.filters import create
|
| 8 |
from pyrogram.types import CallbackQuery, Message
|
| 9 |
+
from pyrogram import enums
|
| 10 |
+
|
| 11 |
|
| 12 |
from Powers import DEV_USERS, OWNER_ID, SUDO_USERS
|
| 13 |
from Powers.database.disable_db import Disabling
|
|
|
|
| 29 |
if not m:
|
| 30 |
return
|
| 31 |
|
| 32 |
+
date = m.edit_date
|
| 33 |
+
if date:
|
| 34 |
return # reaction
|
| 35 |
|
| 36 |
+
chattype = bool(m.chat and m.chat.type in {enums.ChatType.CHANNEL})
|
| 37 |
+
if chattype:
|
| 38 |
return
|
| 39 |
|
| 40 |
if not m.from_user:
|