Context handling implemented

This commit is contained in:
2023-08-30 14:41:34 +02:00
parent c91d7f3afa
commit 57ff7b6765
16 changed files with 54 additions and 14 deletions

View File

@@ -10,4 +10,9 @@ async def _owner_func(_, __: PyroClient, message: Message):
return False if message.from_user is None else __.owner == message.from_user.id
async def _context_func(_, __: PyroClient, message: Message):
return message.from_user.id in __.contexts
owner = filters.create(_owner_func)
context = filters.create(_context_func)