video-stream/driver/filters.py
2022-01-31 19:01:11 +07:00

14 lines
388 B
Python

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)