diff --git a/aiogram/types/message.py b/aiogram/types/message.py index 311ed6ef..a02cb601 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -153,14 +153,6 @@ class Message(base.TelegramObject): return ContentType.UNKNOWN - def is_command(self) -> bool: - """ - Check message text is command - - :return: bool - """ - return self.text and self.text.startswith("/") - def is_forward(self) -> bool: """ Check that the message is forwarded. @@ -170,6 +162,14 @@ class Message(base.TelegramObject): """ return bool(self.forward_date) + def is_command(self) -> bool: + """ + Check message text is command + + :return: bool + """ + return self.text and self.text.startswith("/") + def get_full_command(self) -> typing.Optional[typing.Tuple[str, str]]: """ Split command and args