fixup! fix registration,add filter
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -23,3 +23,7 @@ class CommandFilter(BaseFilter):
|
||||
async def __call__(self, message: Message) -> bool:
|
||||
return message.text.startswith(tuple(self.commands.keys()))
|
||||
|
||||
|
||||
class IsRegister(BaseFilter):
|
||||
async def __call__(self, message: Message | CallbackQuery, **data: dict[str, Any]) -> bool:
|
||||
return data.get("through_registration") is True
|
||||
|
||||
Reference in New Issue
Block a user