Skip to content

Commit d5144a5

Browse files
committed
Merge remote-tracking branch 'origin/dev-2.x' into dev-2.x
2 parents d5169a2 + 027139f commit d5144a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aiogram/types/message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def get_full_command(self):
168168
:return: tuple of (command, args)
169169
"""
170170
if self.is_command():
171-
command, _, args = self.text.partition(' ')
171+
command, args = self.text.split(maxsplit=1)
172172
return command, args
173173

174174
def get_command(self, pure=False):
@@ -192,7 +192,7 @@ def get_args(self):
192192
"""
193193
command = self.get_full_command()
194194
if command:
195-
return command[1].strip()
195+
return command[1]
196196

197197
def parse_entities(self, as_html=True):
198198
"""

0 commit comments

Comments
 (0)