This commit is contained in:
levina 2021-10-25 15:21:40 +07:00 committed by GitHub
parent be6e7ecb9c
commit ab2c397aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
driver/filters.py Normal file
View File

@ -0,0 +1,13 @@
from pyrogram import filters
from typing import List, Union
from config import COMMAND_PREFIXES
other_filters = filters.group & ~filters.edited & ~filters.via_bot & ~filters.forwarded
other_filters2 = (
filters.private & ~filters.edited & ~filters.via_bot & ~filters.forwarded
)
def command(commands: Union[str, List[str]]):
return filters.command(commands, COMMAND_PREFIXES)