14 lines
321 B
Python
14 lines
321 B
Python
|
"""Custom message filters"""
|
||
|
|
||
|
from pyrogram import filters
|
||
|
from pyrogram.types import Message
|
||
|
|
||
|
from classes.pyroclient import PyroClient
|
||
|
|
||
|
|
||
|
async def _owner_func(_, __: PyroClient, message: Message):
|
||
|
return False if message.from_user is None else __.owner == message.from_user.id
|
||
|
|
||
|
|
||
|
owner = filters.create(_owner_func)
|