update filters.py

This commit is contained in:
zxce3 2021-09-12 11:37:01 +07:00
parent bc7e710f36
commit 9338a5f932

View File

@ -2,11 +2,12 @@ from typing import Union, List
from pyrogram import filters
from config import COMMAND_PREFIXES
# from config import Veez.COMMAND_PREFIXES
from config import Veez
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)
return filters.command(commands, Veez.COMMAND_PREFIXES)