From 4dd55015c5895d5cab00f568ba2d287c41af5a84 Mon Sep 17 00:00:00 2001 From: Egor Dementyev Date: Tue, 9 Jun 2020 16:33:02 +0300 Subject: [PATCH] Fix message.get_full_command() --- aiogram/types/message.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aiogram/types/message.py b/aiogram/types/message.py index b9452967..6ca0a27d 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -168,7 +168,8 @@ class Message(base.TelegramObject): :return: tuple of (command, args) """ if self.is_command(): - command, args = self.text.split(maxsplit=1) + cmd_args = self.text.split(maxsplit=1) + command, args = cmd_args.pop(0), cmd_args.pop(0) if cmd_args else '' return command, args def get_command(self, pure=False):