fix typos

This commit is contained in:
Egor Dementyev 2020-06-11 20:25:52 +03:00 committed by GitHub
parent ad3c2b6909
commit 66aae50018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):