fixup! fix registration,add filter
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-09-25 22:46:24 +03:00
parent 2307637c80
commit a2509c629e

View File

@@ -23,3 +23,7 @@ class CommandFilter(BaseFilter):
async def __call__(self, message: Message) -> bool: async def __call__(self, message: Message) -> bool:
return message.text.startswith(tuple(self.commands.keys())) 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