diff --git a/aiogram/types/message.py b/aiogram/types/message.py index 5956ccbe..2ea65bfb 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -168,9 +168,8 @@ class Message(base.TelegramObject): :return: tuple of (command, args) """ if self.is_command(): - command, *args = self.text.split(maxsplit=1)'' - arg = args[0] if args else None - command, args = cmd_args.pop(0), cmd_args.pop(0) if cmd_args else '' + command, *args = self.text.split(maxsplit=1) + args = args[0] if args else None return command, args def get_command(self, pure=False):