From c250413d55810b6cd93a75bd16530941a529c6cc Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Mon, 17 Jul 2023 02:46:34 +0300 Subject: [PATCH] Fixed compatibility --- aiogram/filters/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/filters/command.py b/aiogram/filters/command.py index 85ff4de6..6e654531 100644 --- a/aiogram/filters/command.py +++ b/aiogram/filters/command.py @@ -191,7 +191,7 @@ class Command(Filter): return command # noqa: RET504 def do_magic(self, command: CommandObject) -> Any: - if not self.magic: + if self.magic is None: return command result = self.magic.resolve(command) if not result: