From 427c10ea3f8c9b58f4f783c574c127e245a54b0c Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Wed, 7 Jul 2021 12:23:35 +0300 Subject: [PATCH] Fixed command filter for photos --- aiogram/dispatcher/filters/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/dispatcher/filters/command.py b/aiogram/dispatcher/filters/command.py index 0e584c99..ba760bef 100644 --- a/aiogram/dispatcher/filters/command.py +++ b/aiogram/dispatcher/filters/command.py @@ -52,7 +52,7 @@ class Command(BaseFilter): return False try: - command = await self.parse_command(text=cast(str, message.text), bot=bot) + command = await self.parse_command(text=text, bot=bot) except CommandException: return False return {"command": command}