From 66aae5001879ed170236741e4da7165bc19da4ad Mon Sep 17 00:00:00 2001 From: Egor Dementyev Date: Thu, 11 Jun 2020 20:25:52 +0300 Subject: [PATCH] fix typos --- aiogram/types/message.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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):