From 8d30c1dc1b9a494178835ec09e389444cd6fcbbd Mon Sep 17 00:00:00 2001 From: Egor Dementyev Date: Sat, 13 Jun 2020 19:18:30 +0300 Subject: [PATCH] Fix message.get_full_command() (#352) * Fix message.get_full_command() * Fix message.get_full_command() by JrooTJunior Co-authored-by: Alex Root Junior * fix typos Co-authored-by: Alex Root Junior --- 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..2ea65bfb 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) + command, *args = self.text.split(maxsplit=1) + args = args[0] if args else None return command, args def get_command(self, pure=False):