mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix message.get_full_command()
This commit is contained in:
parent
d5144a5d14
commit
4dd55015c5
1 changed files with 2 additions and 1 deletions
|
|
@ -168,7 +168,8 @@ class Message(base.TelegramObject):
|
||||||
:return: tuple of (command, args)
|
:return: tuple of (command, args)
|
||||||
"""
|
"""
|
||||||
if self.is_command():
|
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
|
return command, args
|
||||||
|
|
||||||
def get_command(self, pure=False):
|
def get_command(self, pure=False):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue